Page 4 of 4 FirstFirst 1234
Results 31 to 36 of 36
  1. #31
    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

    This is becoming Pythonesque don`t you think?

    Let us both respect our different systems, skills and needs and focus on moving forward.

    Regards

    David

  2. #32
    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

    David,

    You are talking chinese to me now
    But I agree with you, it is time to stop, let us close this thread and go back to work.

    Regards,

    Nico

  3. #33
    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

    Ian,

    you dont understand this?
    this is very easy to explain

    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
    }

    when this is the only lines in the SIOC script the SIOC program will do the following :
    it will check all inputs at a high rate (let say 50 times per second). If the value in the
    hardware of input 5 changes state it will change var 0002 from 0->1 or from 1->0.
    When the var changes the defines script for Var 0002 will be executed and this will
    copy the value of the input into var 0001. Since this variable is linked to an FSUIPC_OUTPUT the SIOC program will copy the var 0001 to the fsuipc offset 8b0A. So in 8b0a a 1 will be copied if you press input 5. the next time you press input 5 a 0 will be
    set into offset 8b0A.
    The site of project magenta (documentation) has an extensive list of all fsuipc offsets and there use.
    Thats it.
    Just take into consideration the SIOC script you write is only an input to a program wich runs in the background. Sioc itself will continuously check all hardware inputs, all fsuipc inputs that your script needs and when one of those variables change then the value
    of those inputs (hw inputs/fsuipc inputs) is copied into there respective var xxxx.
    When a var changes value then the script linked with this var will be executed. This script
    can of course change one or more other vars and those changing vars can again change
    other vars .... you see that this is an event driven program sequence. One event ( a change of a var) can lead to a chain of events....
    there is little syntax possibilities in sioc. When an event happens you can use an IF THEN ELSE construction to decide what will happen depending on a value of a var, or of one of the three boolean values (C0 C1 C2) or one of the three real (real numbers) vars (L0 L1 L2)

    Hope this explains a little.
    FS9+PM+AST+opencockpits

  4. Thanks dnoize, kiek thanked for this post
  5. #34
    300+ Forum Addict jmig's Avatar
    Join Date
    Apr 2007
    Location
    Lafayette, LA USA
    Posts
    422
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: SIOC Pre compiler

    Quote Originally Posted by fordgt40 View Post
    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
    Does anyone know the offset to light the Master Caution in FSX? I have looked through the FSUIPC docs and can't find anything.
    John

    System:
    ASUS P5Q SE/R
    Intel Q9550 O/C to 3.4 GHz
    4 GB 1066 DDR2 RAM
    300 GB WD 10,000 RPM Raptor SATA Drive
    GeForce 8800 GT 512 KB RAM
    Matrox TH2Go with three 19" Sumsung 940 BX
    IR Track 4

  6. #35
    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

    Re: SIOC Pre compiler

    Hi John,

    I'm afraid there is no offset in FSUIPC with state information about the Master Caution annunciator.

    The only add-on I know off that makes that info available (via its SDK), is the Level-D 767.

  7. Thanks jmig thanked for this post
  8. #36
    300+ Forum Addict jmig's Avatar
    Join Date
    Apr 2007
    Location
    Lafayette, LA USA
    Posts
    422
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: SIOC Pre compiler

    Quote Originally Posted by kiek View Post
    Hi John,

    I'm afraid there is no offset in FSUIPC with state information about the Master Caution annunciator.

    The only add-on I know off that makes that info available (via its SDK), is the Level-D 767.
    Yeah, I didn't think so. Didn't hurt to ask.
    thanks for replying, Nico.
    John

    System:
    ASUS P5Q SE/R
    Intel Q9550 O/C to 3.4 GHz
    4 GB 1066 DDR2 RAM
    300 GB WD 10,000 RPM Raptor SATA Drive
    GeForce 8800 GT 512 KB RAM
    Matrox TH2Go with three 19" Sumsung 940 BX
    IR Track 4

Page 4 of 4 FirstFirst 1234

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