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.
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.