View Full Version : Help configuring Opencockpits IOC card.

11-07-2007, 03:46 AM
After a long time building my generic cockpit I have finally come to the last part.
Configuring the card. It works fine with the controll software (controllador) and it recognize all buttons, so that is at least fine.

I have followed the tutorials on Opencockpits forum and site, but I still don't get it to work.
First step is just to get the gear switch to work. Simple you might think...

Can anyone that have any experiance with these cards please give me a helping hand?
I have posted the problem on their forum.... but still no answer http://www.simhq.com/forum/images/graemlins/default/mad!.gif

here is what my ini file looks like (just one command for the gear) :



Name Address Length Function Initial Value
____ _______ ______ ________ _____________
GEAR $0BE8 4 1


Name N.Input Variable Value_ON/Key Value_OFF/Key Type
____ _______ ________ ____________ _____________ ____


Name Initial Input Variable Aceleration/-K Cte. Inc./+K Type
____ _____________ ________ ______________ ____________ ____


Name Initial Digit Variable Numbers Options
____ _____________ ________ _______ _______


Name N.Output Variable Value ON Value OFF
____ ________ ________ ________ _________


Name If Value > Then Valor = If Value < Then Value = Value=Value x Value=Value +
____ ___________ ____________ __________ ____________ _____________ _____________


Name Initial Output Variable Left Pos. Center Pos. Right Pos.
____ ______________ ________ _________ ___________ __________


Name Initial Output Variable Aceleration Type
____ ______________ ________ ___________ ____


Name Initial Input Variable Left Pos. Center Pos. Right Pos.
____ _____________ ________ _________ ___________ __________


Name Initial Output Variable Initial Digit Numbers Options
____ ______________ ________ _____________ _______ _______

________END_OF_REPORT_______ (IOCards by Manolo Vélez)

11-07-2007, 07:28 AM
Hi, i suggest you to use SIOC there are good tutorials and examples on their site.

11-07-2007, 08:19 AM
OK will try that instead. But where can I find the software? Cannot find it on Opencockpits anywhere.

Btw they should also have a program for easily programing SIOC called GenEx. I can find a notice of it, but not the program.

OK found both now.Finally

11-07-2007, 08:28 AM
OK, think I found it on my PC. ini_sioc.exe is that the one?

11-07-2007, 11:50 AM
No, look in the download section of opencockpits!


11-07-2007, 03:12 PM
I suggest IOCards to start with. Please download all the docs from their site and study them. The answers are there, but take some finding.
Brian W.

Carlo Blanch
11-07-2007, 06:03 PM
ok, dowload Sioc and install it.
Probably you have IOCARD suite already istalled , so the conf file is working fine.
With controlador.exe you must check the switch number you want to use for gear lever.

then you must create the code.
You can create the script code with the config_sioc program, or write it with a notepad to a text file and import it to the config_sioc to generate the *.ssi file that you need.
Note that in the sioc.ini you must select the file (the default is sioc.ssi) you want to use.

In the help you have the complete reference.

The concept is that you must create the variable for the switch, the variable for the i/o (fsuipc link) and works with them.

So the code will be:

Var 0100, name Gear_lever, Link FSUIPC_INOUT, Offset $0BE8, Length 4 // Gear i/o linked to FS via FSUIPC

Var 0105, name Gear_SW, Link IOCARD_SW, Input XX, Type P // Gear switch

IF &Gear_SW = 1
&Gear_lever = 16383

IF &Gear_SW = 0
&Gear_lever = 0

Where XX is the number of the Gear input you discovered with controlador.exe
Offset $0BE8 is the memory offset for gears, writing the value 0 will raise the gears, the value 16383 will lower them.
I used the command FSUIPC_INOUT because I will need to read the values from FS to drive the gears lights.

SIOC is an event language, so the code after Var 0105, name Gear_SW will be executed only if the state of the switch change.

11-07-2007, 06:24 PM
Thanks, I have downloaded all the files and started to study.
Wow, this will take some time to setup I realize now.
But then again, I got plenty of options on how to expand the cockpit once I learned it.

Thanks for the example , that's exactly what I need :D
If I just get the first step to work it will be easier to learn and to test what does not work. I'm a trial and error man ;)