Jump to content

Sign in to follow this  
nickpike

XML Timer Issues

Recommended Posts

I need an XML timer that will turn ON a variable for X seconds every Y seconds. So far, I've been unsuccessful in this venture.I want to create a "fake ATC interrogation request" every 40 seconds or so, and have the "R" displayed for about 5 seconds or so.This is such a trivial bit of code in C, but I just can't seem to get my head wrapped around the solution! :(I do know that it requires two timer circuits; one to initiate the "Interrogation," and another to keep the "R" displayed for 5 seconds, and that the "R" timer needs to be nested in the "Interrogation" timer.I'd be deeply grateful for any help! ;)

Share this post


Link to post
Share on other sites

It never fails! One minute and thirty-seven seconds after posting a plea for help... I find a solution... ;)It ain't pretty, but it's functional:(L:ATC_FakeTimer,seconds) 1 + (>L:ATC_FakeTimer,seconds)(L:ATC_FakeTimer,seconds) 360 > if{ 1 (>L:ATC_Fake,bool) (L:ATC_FakeTimer,seconds) 450 > if{ 0 (>L:ATC_FakeTimer,seconds) 0 (>L:ATC_Fake,bool) } }

Share this post


Link to post
Share on other sites

or(L:ATC_FakeTimer,seconds) 1 + s0 (>L:ATC_FakeTimer,seconds) l0 39 > if{ (>L:ATC_Fake,bool) } l0 44 > if{ 0 (>L:ATC_FakeTimer,seconds) 0 (>L:ATC_Fake,bool) }not testednick

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...