PDA

View Full Version : OpenCockpits - SIOC - FSUIPC - PMDG issue



Boeing737
03-20-2015, 05:12 AM
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.

kiek
03-20-2015, 05:46 AM
Try this


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

Boeing737
03-20-2015, 06:05 AM
Just tried it and of course it works! :grin:
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!

kiek
03-20-2015, 06:44 AM
Who would have thought one little character could cause so much grief!

Yeah, that's a nasty habit of computers ;-)