Results 1 to 5 of 5

Thread: RUN Time Errors

  1. #1
    imported_MattO
    Guest

    RUN Time Errors

    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

  2. #2
    New Member
    Join Date
    Nov 2004
    Posts
    2
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  3. #3
    alandyer
    Guest
    Christian,

    What version od Phidgets.dll are you using?

    Regards,
    Alan.

  4. #4
    New Member
    Join Date
    Nov 2004
    Posts
    2
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Dll Version

    I'm using DLL version 1.3.5.0

    Regards
    Christian Pedersen

  5. #5
    alandyer
    Guest
    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.

Similar Threads

  1. Classifieds changes, errors?
    By blueskydriver in forum MyCockpit Support:
    Replies: 3
    Last Post: 02-04-2010, 01:58 PM
  2. Old time builder,new time member
    By Glenn Weston in forum Welcome to MyCockpit New here? Introduce Yourself!
    Replies: 4
    Last Post: 05-23-2009, 04:06 PM
  3. Classifieds changes, errors?
    By blueskydriver in forum MyCockpit Support:
    Replies: 21
    Last Post: 01-22-2009, 01:20 PM
  4. Runtime errors on Led64
    By Andras in forum FS2Phidget Users
    Replies: 18
    Last Post: 12-04-2004, 06:49 PM