Results 1 to 6 of 6

Thread: SIOC Question

  1. #1
    150+ Forum Groupie
    Join Date
    Aug 2008
    Location
    Dallas, Texas
    Posts
    192
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    SIOC Question

    How do you use the testbit function to turn off rather than turn on a led?

    EX. This is on the Project Magenta B747-400 Overhead Panel

    Var 0590, name DRIVE_DISC, Link FSUIPC_INOUT, Offset $5635, Length 2
    {
    V0631 = TESTBIT V0590 ,4 I want this led (V0631) to turn off when
    V0632 = TESTBIT V0590 ,4 this led (V0632) turns on and vise versa
    V0633 = TESTBIT V0590 ,5
    V0634 = TESTBIT V0590 ,5
    V0635 = TESTBIT V0590 ,6
    V0636 = TESTBIT V0590 ,6
    V0637 = TESTBIT V0590 ,7
    V0638 = TESTBIT V0590 ,7
    }



    Jerry

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

    You have to add an intermediate value:
    Code:
    C0 = TESTBIT v0590, 4
    IF C0
    {
      v0631 = 0
      v0632 = 1
    }
    ELSE
    {
      v0631 = 1
      v0632 = 0
    }

    Nico

  3. #3
    10+ Posting Member
    Join Date
    Jan 2014
    Location
    PAN-PAN
    Posts
    18
    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 Question

    Does anyone have a SIOC script for cold and dark for default FSX and the OC MCP?

  4. #4
    10+ Posting Member
    Join Date
    Jan 2014
    Location
    PAN-PAN
    Posts
    18
    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 Question

    Does anyone have a SIOC script for cold and dark for the FSX default 737 and the OC MCP?

  5. #5
    10+ Posting Member
    Join Date
    Jan 2014
    Location
    PAN-PAN
    Posts
    18
    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 Question

    Does anyone have a SIOC script for cold and dark for the FSX default 737 and an OC MCP?

  6. #6
    10+ Posting Member
    Join Date
    Jan 2014
    Location
    PAN-PAN
    Posts
    18
    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 Question

    Sorry, I guess I don't know how to post here either.....