Used with an output card to control lights

Forum for the OC4BA v2/v3 and OC4BAConfig including the OCP4NGX driver
Post Reply
Oddfarm
Posts: 4
Joined: Sat Oct 04, 2014 8:29 pm

Used with an output card to control lights

Post by Oddfarm »

Hello.

Is it possible to use this card http://www.opencockpits.com/catalog/usb ... Path=21_44 and set it up with the LED's and make it Connert the PMDG using this program?
mvr1918
Site Admin
Posts: 1703
Joined: Thu Aug 30, 2012 3:35 pm

Re: Used with an output card to control lights

Post by mvr1918 »

Hi,

Yes it should be possible. I have not tested this card myself, but it should work OK without problems.

It must be configured and the script must be modified or written.
Oddfarm
Posts: 4
Joined: Sat Oct 04, 2014 8:29 pm

Re: Used with an output card to control lights

Post by Oddfarm »

Hello

How would I go on use this with your program then? Could you give me some instructions, which OP components do I select etc?

PS: I am trying to use it for a overhead
mvr1918
Site Admin
Posts: 1703
Joined: Thu Aug 30, 2012 3:35 pm

Re: Used with an output card to control lights

Post by mvr1918 »

If you are to start building some hardware to connect switches, rotaries and Leds to you cockpit I recommend you to start with
a combination of an EXPANSION and MASTER card. With these two cards you have a total of 72 inputs and 45 outputs + an easy way of expanding
with 3 more MASTER cards ( a total of 3x72 extra inputs and 3x45 extra outputs) + DISPLAY CARDS.

Let say you want to make some OVH inputs and Outputs from this hardware. What do you do then?

1. Start SIOC.exe from SIOC folder
2. Click Edit_Script in the SIOC main window
3. Go to Files/Open, find OCP4NGX_3.x.ssi script file ( x depends on version you have)
4. Export to text and rename to OCP4NGX_3.x.txt.
5. If you want to make the Fuel Pump switches and Fuel pump annunciators.
you must first find the SIOC Event and Variable numbers for these in the Event List and Variable List that should be in your SIOC folder
They should be:
2646 EVT_OH_FUEL_PUMP_1_AFT
2647 EVT_OH_FUEL_PUMP_1_FORWARD
2648 EVT_OH_FUEL_PUMP_2_AFT
2649 EVT_OH_FUEL_PUMP_2_FORWARD
2650 EVT_OH_FUEL_PUMP_L_CENTER
2651 EVT_OH_FUEL_PUMP_R_CENTER

Events are inputs and Variables are outputs.

1076 = FUEL_annunLOWPRESS_Aft[0]);
1077 = FUEL_annunLOWPRESS_Aft[1]);
1078 = FUEL_annunLOWPRESS_Ctr[0]);
1079 = FUEL_annunLOWPRESS_Ctr[1]);
1074 = FUEL_annunLOWPRESS_Fwd[0]);
1075 = FUEL_annunLOWPRESS_Fwd[1]);

The numbers on the left are the SIOC variable number you must link to your hardware.

6. Open the OCP4NGX_3.x.txt script code and search for these numbers

I have one input here:

Var 2650, name FUEL_P_L_C, static, Value 0

Var 0040, name Fuel_PC_L_SW, Link IOCARD_SW, Device 30, Input 31 // Fuel Pump Ctr L Sw
{
&FUEL_P_L_C = CHANGEBITN 0 ,&FUEL_P_L_C
}

To find the output first search for the output number , i.e. 1076 and then the led variable

Var 1076, name LOWPR_Aft_L, static
{
V0076 = &LOWPR_Aft_L
}

Var 0076, static, Link IOCARD_OUT, Device 30, Output 24 // FP 1 Aft LED

7. Connect your switch to input 31 and your LED( via a resistor) to output 24 of the MASTER card

8. Start OC4BAConfig and link you EXPANSION/MASTER card that will be under Detected HW to the OVH under Operation

You should also read the http://www.lekseecon.nl/howto.html to get a good knowledge of SIOC coding


Hope this helps you a little bit on the way to build more functions to your cockpit.

In order to be successful you must invest in learning SIOC and try and test, and try and test..... It is a very powerful and easy once you understand it.
Oddfarm
Posts: 4
Joined: Sat Oct 04, 2014 8:29 pm

Re: Used with an output card to control lights

Post by Oddfarm »

Hi Roar,

How about the gauges? Is that included in the script?
mvr1918
Site Admin
Posts: 1703
Joined: Thu Aug 30, 2012 3:35 pm

Re: Used with an output card to control lights

Post by mvr1918 »

All OVH and MIP gauges ( but Yaw gauge) are coded in the script. You will these script lines in the OVH part of the OCP4NGX_v3.x.ssi .


SOme o fthem may need some minor modification.
Post Reply