Results 1 to 5 of 5
  1. #1
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    storing State of a Push Button in SIOC

    Hi,
    I want to drive a LED from a push button connected to a Bodnar card.
    I am reading this switch thru an offset in FSUIPC. Want the led to stay
    lit when releasing the switch and on another press of the switch for
    the led to go out.
    Using SIOC it will read a change in the switch for both press and release
    thus turning the lead on and then off on button release.
    Any ideas appreciated.
    Thanks
    Regards
    Les

  2. #2
    10+ Posting Member
    Join Date
    Dec 2010
    Location
    Netherlands
    Posts
    20
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: storing State of a Push Button in SIOC

    Hi Les,

    Perhaps you can find an answer here: http://www.lekseecon.nl/howto.html

    Regards,

    Jan

  3. #3
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: storing State of a Push Button in SIOC

    Thanks Jan,
    Yes I am aware of Nico's site. Can handle more of the simpler tasks with SIOC but even with those examples
    I cannot see how I can do it. So will try a hardware solution.
    Regards
    Les

  4. #4
    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

    Re: storing State of a Push Button in SIOC

    Les

    The first tutorial section on Nico`s site which is "Push Button" shows how to do it. Use type P for the switch and it will latch ie stay either on or off until the switch is pressed again

    David

  5. #5
    500+ This must be a daytime job



    Join Date
    Jan 2007
    Location
    NEW ZEALAND
    Posts
    908
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: storing State of a Push Button in SIOC

    David,
    With the example on Nico's site deals with a switch connected to iocards. So you are defining the switch type.
    In my case the switch is connected to a BU386x and I read the dec value of this switch via Offset 03c4. These
    addresses are for the 0-15 joysticks available in FSUIPC and for each button press on a joystick and code is
    generated. If I could find something in SIOC that would read this offset and latch it I could process it.
    Les