Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36
  1. #21
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Peter

    Thanks for your kind offer of help, it is appreciated. I think that there are different expectations and understandings of what Chris is trying to do. I have persevered with SIOC and have a reasonable understanding, however, still welcome what Chris is trying to do as it would make my life easier.

    There is no magical solution that will enable all to instantly programme SIOC, but anything that eases the syntax, colour code expressions and can easily highlight all instances of variables can only help some and more importantly encourage others to take the plunge. The way forward is to expand the usage of SIOC.

    Regards

    David

  2. #22
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi guys,

    I'd like to give an example of how simple SIOC scripts can be ...
    Especially if you build for the Level-D 767 and you run my free lekseecon.exe program in the background, it is merely just a number of 'one liners'.

    Suppose I want to connect three push buttons as MCP CMD L, MCP CMD C and MCP CMD R switch.

    For each switch you only have to define one (!) line of SIOC code, like this:

    Var 275 Link IOCARD_SW Input 5 Type P // CMD L
    Var 276 Link IOCARD_SW Input 6 Type P // CMD C
    Var 277 Link IOCARD_SW Input 7 Type P // CMD R

    SIOC variable numbers 275, 276 and 277 are predefined by my lekseecon tool and are implicitly linked by lekseecon at run time to the Level-D.
    These variable are the control variables for the switches in the Level-D panel. If the variable is 1 the switch will be ON, if it is 0 the switch will be OFF.

    You only have to understand what the Variable attributes mean:
    * Link IOCARD_SW means that the variable is linked to an IOCard switch;
    * Input 5 means that the switch is connected to Input 5 of a Mastercard;
    * Type P means that the switch is a push button, each time you push the button the Variable connected to it changes from 0 -> 1 or
    from 1 -> 0.

    The var numbers 275, 276 and 277 are only used in these lines, they will not appear anywhere else in the script so no need here for tools to find these places.

    regards,

    Nico

  3. Thanks dnoize thanked for this post
  4. #23
    150+ Forum Groupie pdpo's Avatar
    Join Date
    Nov 2005
    Location
    belgium
    Posts
    260
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi Niko,

    be carefull with the examples form your LEKSECON, they are only valid if working with your program and with the LEVEL_D. The logic which needs to be put into SIOC and interact with FS is taken care of by your superb application. Therefor your sioc script has become merely a definition part to tell which inputs, which outputs, which displays.
    If all addon planes (like PSS, like PMDG,..) would have such extensive SDK as the level-D there would be no more need for SIOC, just an application for each like your leksecon and cockpitbuilding would become a breeze.... lets hope the future turns in that direction

    Greetz Peter
    FS9+PM+AST+opencockpits

  5. #24
    25+ Posting Member weyes's Avatar
    Join Date
    Oct 2008
    Location
    Germany
    Posts
    46
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Yes, I agree with Peter.

    If eveyrbody with every airplane could use lekseecon then tehre would be no need to think of a improved SIOC.

  6. #25
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi,

    it was a teaser... one can always switch to the 767...

    For other airplanes using FSUIPC offsets it is just a tiny little bit more complex, you need two var definitions (instead of 1).

    A first variable to make the FSUIPC offset available, and a second variable that relays the values from the switch to the FSUIPC var:

    Var 1 name CMDL Link FSUIPC_OUT Offset $8b0A Length 2
    Var 2 name CMDSwitch Link IOCARD_SW Input 5 Type P // CMD L
    {
    &CMDL = &CMDSwitch
    }

    And again, these two var declarations can be placed together in your SIOC script. These variable numbers or variable names will not be used anywhere else, no need for tools to highlight that.


    But I'm always available to answer questions, here or in the Opencockpits fora,

    Nico

  7. Thanks dnoize thanked for this post
  8. #26
    75+ Posting Member MortenHa's Avatar
    Join Date
    Apr 2007
    Location
    Norway, Vardø
    Posts
    77
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Well, I said it was a brilliant idea, althought I'll never use it myself
    I was of course thinking about those of you who do not know the nuts & bolts of programming.

    I thought it might help...

    I also warned Chris on how big this project could become if he went full throttle with this. It would take a considerable amount of time to make it user-friendly on a novice level (assuming nothing about Chris's programming skills, any project with such parameters is time consuming).

    But look on the bright side!
    The use of editors suitable for writing code has been discussed, as well as the well of information available among fellow builders.

    So if there's a code problem, post it here!

    There's help to be found

    Cheers!

    Morten

  9. #27
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Nico

    I wonder from how many sources the routine to light up the master caution and fire warning lights might be called?

    Just a little teaser

    Regards

    David

  10. #28
    500+ This must be a daytime job ian@737ng.co.uk's Avatar
    Join Date
    Jan 2006
    Location
    Oswestry, Shropshire
    Posts
    604
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Smile :o))

    Var 1 name CMDL Link FSUIPC_OUT Offset $8b0A Length 2
    Var 2 name CMDSwitch Link IOCARD_SW Input 5 Type P // CMD L
    {
    &CMDL = &CMDSwitch
    }

    see, i told you it was like learning to write chinese !
    just another teaser (no i mean it) ))

    ciao ... ian
    Mr. Ian. P. Sissons is hereby recognised as an Honorary Flight Sim Captain following his passing in February 2016. This is in recognition for his commitment to Flight Simulation.

    www.mycockpit.org Featured Builder August 2008 www.737ng.co.uk
    FS9/PROSIM737/CPFLIGHT/Lots of BU0836X's and a Beer Fridge

  11. #29
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by ian@737ng.co.uk View Post
    Var 1 name CMDL Link FSUIPC_OUT Offset $8b0A Length 2
    Var 2 name CMDSwitch Link IOCARD_SW Input 5 Type P // CMD L
    {
    &CMDL = &CMDSwitch
    }
    see, i told you it was like learning to write chinese !
    just another teaser (no i mean it) ))
    LOL, writing chinese is a lot more difficult in my opinion...

    However, if you do not understand these 5 lines, you made a wise decision to forget about SIOC.

    nico

  12. #30
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by fordgt40 View Post
    I wonder from how many sources the routine to light up the master caution and fire warning lights might be called?

    Just a little teaser
    David,
    In my Level-D, the master caution light is controlled at only one place, just like the Gear indicator light in this annotated example:
    http://www.lekseecon.nl/images/lekse...nno_output.htm



    Regards,
    Nico

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Sioc / PM
    By mpl330 in forum OpenCockpits General Discussion
    Replies: 6
    Last Post: 02-07-2010, 01:26 PM
  2. CNC compiler problem
    By davek in forum Westozy's Mechanical Engineering
    Replies: 1
    Last Post: 01-01-2010, 09:23 AM
  3. Help with SIOC please?
    By Jake 747 400 in forum General Builder Questions All Aircraft Types
    Replies: 13
    Last Post: 11-20-2009, 07:00 PM
  4. SIOC Help
    By CessnaGuy in forum I/O Interfacing and Hardware
    Replies: 5
    Last Post: 10-25-2009, 10:00 AM
  5. SIOC for MIP?
    By HondaCop in forum I/O Interfacing Hardware and Software
    Replies: 17
    Last Post: 07-21-2009, 07:48 AM