Results 1 to 8 of 8
-
11-07-2007, 03:46 AM #1
- Join Date
- Aug 2007
- Location
- Kallinge, Sweden
- Posts
- 29
Help configuring Opencockpits IOC card.
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
here is what my ini file looks like (just one command for the gear) :
IOCARDS CONFIGURATION
_____________________
VARIABLES
=========
Name Address Length Function Initial Value
____ _______ ______ ________ _____________
GEAR $0BE8 4 1
SW-NORMAL
=========
Name N.Input Variable Value_ON/Key Value_OFF/Key Type
____ _______ ________ ____________ _____________ ____
GEAR_TOGGLE 4 GEAR 1 0
SWR / ENCODERS
==============
Name Initial Input Variable Aceleration/-K Cte. Inc./+K Type
____ _____________ ________ ______________ ____________ ____
DISPLAYS 7-S
============
Name Initial Digit Variable Numbers Options
____ _____________ ________ _______ _______
OUTS & CONFIG
=============
Name N.Output Variable Value ON Value OFF
____ ________ ________ ________ _________
DEF.FUNCTIONS
=============
Name If Value > Then Valor = If Value < Then Value = Value=Value x Value=Value +
____ ___________ ____________ __________ ____________ _____________ _____________
SERVO-E.
========
Name Initial Output Variable Left Pos. Center Pos. Right Pos.
____ ______________ ________ _________ ___________ __________
STEEP-E.
========
Name Initial Output Variable Aceleration Type
____ ______________ ________ ___________ ____
ANALOGIC INPUT
==============
Name Initial Input Variable Left Pos. Center Pos. Right Pos.
____ _____________ ________ _________ ___________ __________
LCD DISPLAY
===========
Name Initial Output Variable Initial Digit Numbers Options
____ ______________ ________ _____________ _______ _______
________END_OF_REPORT_______ (IOCards by Manolo Vélez)
-
11-07-2007, 07:28 AM #2
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 204
Hi, i suggest you to use SIOC there are good tutorials and examples on their site.
-
11-07-2007, 08:19 AM #3
- Join Date
- Aug 2007
- Location
- Kallinge, Sweden
- Posts
- 29
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 #4
- Join Date
- Aug 2007
- Location
- Kallinge, Sweden
- Posts
- 29
OK, think I found it on my PC. ini_sioc.exe is that the one?
-
11-07-2007, 11:50 AM #5
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 204
No, look in the download section of opencockpits!
http://www.opencockpits.com/modules....ownload&cid=34
-
11-07-2007, 03:12 PM #6
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.
-
11-07-2007, 06:03 PM #7
- Join Date
- Jan 2007
- Location
- Italy
- Posts
- 14
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 #8
- Join Date
- Aug 2007
- Location
- Kallinge, Sweden
- Posts
- 29
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
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
Similar Threads
-
Opencockpits USB servo card
By Rockeyes in forum General Builder Questions All Aircraft TypesReplies: 71Last Post: 01-13-2013, 04:53 PM -
Opencockpits USBLCD Card Displays
By Boeing 747 Flyer in forum Cockpit Parts and Motion PlatformsReplies: 14Last Post: 10-01-2010, 02:51 AM -
Servo Motor Card from Opencockpits
By Oter3 in forum OpenCockpits General DiscussionReplies: 2Last Post: 08-02-2009, 08:42 PM -
Need Help for OpenCockpits USBKeys card programming
By SimStar001 in forum I/O Interfacing Hardware and SoftwareReplies: 1Last Post: 01-03-2009, 07:43 AM
Prettys Womans from your city for night
A320 Sound Files Missing