Not getting led output working[SOLVED]

This is a new forum for the OC4BAv4.
Post Reply
Jappie
Posts: 5
Joined: Tue Nov 22, 2016 8:52 pm

Not getting led output working[SOLVED]

Post by Jappie »

Hi Roar,

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 :oops: )

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
For testing I decided to use the "left FD" switch and corresponding led.
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
}
and

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.
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
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?
mvr1918
Site Admin
Posts: 1709
Joined: Thu Aug 30, 2012 3:35 pm

Re: Not getting led output working

Post by mvr1918 »

Do you have the PMDG B737 running and is it powered up?

Check also that the MCP_POWER_ON = 1 in IOCPConsole.

There are a lot going on in the script so you have to test.

You can also send the text in the log file from IOCPConsole when you are testing, so I can see what is going on.

You have the latest PMDG B737 version, Build: 1.10.6461?
Jappie
Posts: 5
Joined: Tue Nov 22, 2016 8:52 pm

Re: Not getting led output working

Post by Jappie »

Hi Roar, you're comment on the build was the trigger I needed. Reinstalled the NGX with the latest version and it works as expected.

Now to redo the liveries and panel tweeks ;)

Thanks, Jasper
mvr1918
Site Admin
Posts: 1709
Joined: Thu Aug 30, 2012 3:35 pm

Re: Not getting led output working

Post by mvr1918 »

This topic is solved by the user.
Post Reply