Results 1 to 8 of 8
  1. #1
    25+ Posting Member
    Join Date
    Aug 2007
    Location
    Kallinge, Sweden
    Posts
    29
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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)

  2. #2
    150+ Forum Groupie
    Join Date
    Jan 2007
    Location
    Italy
    Posts
    204
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi, i suggest you to use SIOC there are good tutorials and examples on their site.

  3. #3
    25+ Posting Member
    Join Date
    Aug 2007
    Location
    Kallinge, Sweden
    Posts
    29
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  4. #4
    25+ Posting Member
    Join Date
    Aug 2007
    Location
    Kallinge, Sweden
    Posts
    29
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    OK, think I found it on my PC. ini_sioc.exe is that the one?

  5. #5
    150+ Forum Groupie
    Join Date
    Jan 2007
    Location
    Italy
    Posts
    204
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    No, look in the download section of opencockpits!

    http://www.opencockpits.com/modules....ownload&cid=34

  6. #6
    300+ Forum Addict


    brianwilliamson's Avatar
    Join Date
    Oct 2005
    Location
    Gold Coast-AUSTRALIA
    Posts
    455
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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.

  7. #7
    10+ Posting Member
    Join Date
    Jan 2007
    Location
    Italy
    Posts
    14
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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.

  8. #8
    25+ Posting Member
    Join Date
    Aug 2007
    Location
    Kallinge, Sweden
    Posts
    29
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    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

  1. Opencockpits USB servo card
    By Rockeyes in forum General Builder Questions All Aircraft Types
    Replies: 71
    Last Post: 01-13-2013, 04:53 PM
  2. Opencockpits USBLCD Card Displays
    By Boeing 747 Flyer in forum Cockpit Parts and Motion Platforms
    Replies: 14
    Last Post: 10-01-2010, 02:51 AM
  3. Servo Motor Card from Opencockpits
    By Oter3 in forum OpenCockpits General Discussion
    Replies: 2
    Last Post: 08-02-2009, 08:42 PM
  4. Need Help for OpenCockpits USBKeys card programming
    By SimStar001 in forum I/O Interfacing Hardware and Software
    Replies: 1
    Last Post: 01-03-2009, 07:43 AM