Results 1 to 4 of 4
  1. #1
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Mar 2012
    Location
    UK
    Posts
    6
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    OpenCockpits - SIOC - FSUIPC - PMDG issue

    Greetings to all fellow aviators.

    I have purchased a USBOutputs card from OC and all I'm trying to do is test an LED.
    I read the guide to getting LED's to light up but it didn't help much as it was for iFly and not PMDG NGX.
    I have tested the card the LED lights up in test mode so I know the hardware is good.
    I have googled for the relevant code to light up the SPEEDBRAKE_ARMED annunciator but turned up nothing.
    This is the code I'm trying:
    Var 10 name Anunsb_1 Link FSUIPC_INOUT Offset 6558 Length 1
    {
    IF v10 = 0
    {
    v20 = 0
    }
    ELSE
    {
    v20 = 1
    }
    }

    Var 20 name Out_63 Link IOCARD_OUT Output 63 Device 0 // MAIN_annunSPEEDBRAKE_ARMED

    In my limited understanding this should light up the LED but when I load a flight and test in the VC but I get no light
    Please could someone help me understand what I'm doing wrong, I've tried code variations and nothing works. I've been working on this for 4 days and I may loose my hair soon!!
    btw, my hardware is a laptop (for testing) the OC USB_OUT card connected directly to a USB port.

  2. #2
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: OpenCockpits - SIOC - FSUIPC - PMDG issue

    Try this
    Code:
    Var 10 name Anunsb_1 Link FSUIPC_INOUT Offset $6558 Length 1
    

    And don't you need to run a program that fills that offset with the speedbrake info?

    Nico

  3. #3
    Our new friend needs to reach 10 posts to get to the next flight level
    Join Date
    Mar 2012
    Location
    UK
    Posts
    6
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: OpenCockpits - SIOC - FSUIPC - PMDG issue

    Just tried it and of course it works!
    Thank you Sir, you have helped me make a real breakthrough.
    Who would have thought one little character could cause so much grief!
    Nothing can stop me now thank you so much!

  4. #4
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: OpenCockpits - SIOC - FSUIPC - PMDG issue

    Quote Originally Posted by Boeing737 View Post
    Who would have thought one little character could cause so much grief!
    Yeah, that's a nasty habit of computers

Tags for this Thread