Thanks for you're help a few weeks ago and in between things I'm starting to understand your software (broke it a few times also )
However I cannot get a simple led to work out of the PMDG, my test setup only has 1 switch and 1 led connected to a mastercard (that will eventually run a MCP and EFIS). To avoid as much errors as possible I wired according your script: OCP4NGX_PP_v4.0.
I have the SDK enabled in the 737NGX_Options
Code: Select all
[SDK]
EnableDataBroadcast=1
I changed the device number in the OCP4NGX_PP_v4.0 script (from 15 to 31) for the input (switch) and output (led) to match my mastercard. this is the part i changed (at var 55 and 58):
Code: Select all
Var 0055, name FD_SW_L, Link IOCARD_SW, Device 31, Input 16, Type I
{
&FD_L = CHANGEBITN 0 ,&FD_L
}
Code: Select all
Var 0058, name OFD1, Link IOCARD_OUT, Device 31, Output 37
In the PMDG the Left FD switch works when I throw the input switch. However the led doesn't light up. I can get the led to work via the IOCP console by sending the value 1/0 to var 58 and 1280.
After 2 weeks of trial and error I am lost. I suspect it is something simple in the PMDG. Can you put me on the right track?55=1 - FD_SW_L
2539=0 - FD_L
55=0 - FD_SW_L
2539=1 - FD_L
sending to var 58
58=1 - OFD1
58=0 - OFD1
sending to var 1280
1280=1 - FD1
58=1 - OFD1
1280=0 - FD1
58=0 - OFD1