Results 1 to 10 of 10
  1. #1
    75+ Posting Member
    Join Date
    Nov 2005
    Location
    Bombay, India VABB
    Posts
    83
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Time Delay to event

    Hi All / Alan -

    I was looking for a way to add a delay to an event - for eg, trigger a relay 2 secs after squat switch in "on" .... is there any way to do this via the fs2p editor/ini file/configure function? Couldn't find this..

    FS2P V = 4.3.15

    Thanks in advance!

    Farrokh.

  2. #2
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    587
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Farrokh,

    Haven't fogotten about you. Just finishing up correcting bugs that folks reported.
    I can make up a circuit post here. Could also make a sample project available for download.
    As I recall the trick is to use the integrator component.

    Regards,
    Alan
    Last edited by CocnutAir; 02-19-2010 at 03:52 AM.

  3. #3
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    587
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Not sure you can do a delay with 4.3.15.
    Haven't played with that version in ages.
    Don't think I have that anymore on my system.

  4. #4
    75+ Posting Member
    Join Date
    Nov 2005
    Location
    Bombay, India VABB
    Posts
    83
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Hi Alan - I suspected it couldn't be done with 4.xx -- no hurry, will also play around with v5 - still getting the hang of it..

    Thanks!

    Farrokh.

  5. #5
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    587
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Download fs2phidget 5.0.16 (is still in approval status).
    Product manual is no longer in the installer.

    To create circuit with 2 sec time delay:

    Start FS.
    Start FS2Phidget516.
    Open favorite project.
    Create a new circuit.
    Answer "No" to all "Create parallel circuit?" prompts, unless specfied otherwise.
    Add Digital Input component, set label to "TEST".
    Add FS Output component, assign to AUTOPILOT_MASTER_SWITCH Variable (so we can test on ground).
    Add Fixed Value component, set InitialValue property to 1.
    Add Integrator component, set MinValue to 1, MaxValue to 15, set Wrap to false and set Reset to True.
    Add Valve component, set MinValue and MaxValue both to 15, set Shutoff to true.
    Add Digital Output component, set Text to "DONE!".
    Add Connector component (later another circuit will be added to connector - timer will control this circuit).
    Click on the Valve component.
    Add another Digital Output, Answer "Y" to "Add Parallel Circuit?", set text to "TIMER RUNNING".

    To Test:
    Either click on the Digital Input labelled "TEST".
    or
    Click on autopilot master switch in FS.

    Now create a another new circuit.
    Add Fixed Value component, set InitialValue to 16383 (Spoiler fully extended value).
    Add Digital Input, set Controlled to true.
    Note the name of this componentt (hover cursor over component to show name).
    Add FS Input component, assign to FS Variable SPOILER_HANDLE.

    On the first circuit, click on the Connector component.
    Set ChildComponent to name you noted for Digital Input.

    Test again.
    When timer reaches 15 (approx 2 seconds on my lap top)
    the Spoiler should deploy in FS.

    Hope this helps.

    Regards,
    Alan

  6. #6
    75+ Posting Member
    Join Date
    Nov 2005
    Location
    Bombay, India VABB
    Posts
    83
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Thank you alan! Will try this - I guess you'll be uploading .16 when ready

    where would we be without you...

    Farrokh.

  7. #7
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    587
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Is already uploaded.
    Awaiting approval by admins.
    Admins prefer to scrutinize and approve files before exposing to ya'll.
    This is for our protection.
    Last edited by CocnutAir; 02-25-2010 at 01:17 AM.

  8. #8
    25+ Posting Member
    Join Date
    Apr 2008
    Location
    Italy
    Posts
    33
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Thanks for all Alan
    Giosuč

  9. #9
    75+ Posting Member
    Join Date
    Nov 2005
    Location
    Bombay, India VABB
    Posts
    83
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Hi Alan -


    Tried it on v .16 and it works like a dream...! Increased the number to 20 to get a slightly longer delay -

    Thanks!


    Farrokh

  10. Thanks CocnutAir thanked for this post
  11. #10
    builder
    Join Date
    Jan 2007
    Location
    Texas
    Posts
    587
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Time Delay to event

    Farrokh,

    Cool. Thanks for trying this out.

    Regards,
    Alan.

Similar Threads

  1. Vatsim see santa event pics
    By steveeverson in forum MyCockpit Online Flying Discussion
    Replies: 1
    Last Post: 12-20-2009, 08:37 PM
  2. Military Flight Simulator Event in the Netherlands
    By Goldmember in forum MyCockpit Member Meetings
    Replies: 0
    Last Post: 07-23-2009, 10:52 AM
  3. Old time builder,new time member
    By Glenn Weston in forum Welcome to MyCockpit New here? Introduce Yourself!
    Replies: 4
    Last Post: 05-23-2009, 04:06 PM
  4. Help from Event organizers
    By Tomlin in forum General Builder Questions All Aircraft Types
    Replies: 3
    Last Post: 11-14-2007, 09:24 AM
  5. Grand Flight Simulator Event
    By ekezz in forum MyCockpit News and Announcements
    Replies: 0
    Last Post: 08-22-2007, 05:47 PM