Need a trigger

For general discussion related FlowStone
Post Reply
bflynn
Posts: 5
Joined: Mon Dec 12, 2011 11:05 pm

Need a trigger

Post by bflynn »

Im trying to make a trigger that will trigger an output once every 2 secs. Any ideas? or a tick that would trigger once every 1.5 to 2 secs?
Thanks guys!
Morph
Posts: 53
Joined: Tue Jul 13, 2010 1:59 pm

Re: Need a trigger

Post by Morph »

Hi,

Using the Timer primitive:
Sec-trigger.png
Sec-trigger.png (6.66 KiB) Viewed 19184 times


BTW i wonder where is the Counter primitive in FS2?
bflynn
Posts: 5
Joined: Mon Dec 12, 2011 11:05 pm

Re: Need a trigger

Post by bflynn »

Thanks Morph!!! Thats way better than the one i came up with!! I'll give it a try tomorrow and let ya know.

Thanks again
DSP
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Need a trigger

Post by DSP »

This is even simpler:

clip-13.png
clip-13.png (6.45 KiB) Viewed 19168 times


Both this and the one from Morph use the Windows Timers, which are not very accurate but fine for display etc.

If you want it to be super accurate you can make one using the Ruby module, this uses a different more accurate timers.
bflynn
Posts: 5
Joined: Mon Dec 12, 2011 11:05 pm

Re: Need a trigger

Post by bflynn »

Thanks guys. This is what I came up with. This gets me the output i needed. A continuous cycle.
Attachments
capture2.png
capture2.png (23.35 KiB) Viewed 19155 times
DSP
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Need a trigger

Post by DSP »

Nice :)
Post Reply