Count Down


Clo

Recommended Posts

Here is what I want to do:

Manually set a channel high via a bush button and then after 30sec have the same channel go low.

I have looked through the forum and found something about timer that may be applicable:

global startime=systime()

systime()-startime

30-(systim()-starttime)

but how do I wrap this up in a scribt to do the above?

Link to comment
Share on other sites

Simple: first ignore what you found about timers. Just do this:

1) create a new sequence, call it pushButton or something. The script would look something like this:

mychannel = 1 // set high

delay(30)

mychannel = 0 // set low

2) then just have the push button start the sequence using beginseq(mysequence)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.