PDA

View Full Version : RUN Time Errors



imported_MattO
11-26-2004, 11:09 AM
OS XP PRO Patch 1
FS2Phidget 2.03
FS9.1
FSUIPC 3.424

Setting up the Rotary Encoders, no matter what assignment I use, I get:

Run-time error '5'
Invalid procedure call or argument

Matt O.
www.a340project.us

cp1983
11-27-2004, 11:29 AM
I have the same problem.

Does anyone know how to fix this?

I would like the encoder to change the value for the autopilot altitude.

Regards,
Christian Pedersen

alandyer
11-28-2004, 11:36 PM
Christian,

What version od Phidgets.dll are you using?

Regards,
Alan.

cp1983
11-29-2004, 10:59 AM
I'm using DLL version 1.3.5.0

Regards
Christian Pedersen

alandyer
11-30-2004, 12:24 PM
Christian,

Eventually, tracked down bug with encoder.
Elusive little fella.
Latest version is now available that corrects that - 2.0.4.

I would uninstall old version first.
Using Control Panel-> Add/Remove programs.

Autopilot settings will require some crafting of the FSUIPC ini file.

I will post "How to" in tutorial later today.

Basically one has to look at actual value being displayed by MS-FS for, say, altitude.
Then look at FSvalue (value used internally by FS).
Then work out ratio (i.e. value that FSvalue needs to be divided by).
For example, internally FS stores autopilot altitude in meters.
This is why there is no generic solution in FSUIPC ini file.
Some simmers will want feet, others meters and others, possibly even cubits.

Here is how you could customize Autopilot Altitude setting in FS2PhUIPC.ini:

Standard entry:

[AUTOPILOT_ALTITUDE]
Offset=07D4
Length=4
Format=#####

Changed entry:

[AUTOPILOT_ALTITUDE]
Offset=07D4
Length=4
FSType=Divide <---- Indicates to FSPhidgets how to reduce FSValue
Divisor=19975.409 <----- Value to divide FSValue by.
Format=#####

Hope this helps.
Regards,
Alan.