08-14-2015 05:51 AM
Hi,
I would like to use a switch on/off button with specified time.
My criteria is switch on as user input and switch off after 5 seconds and reset back all the numerial and toggle switch to default value.
Im having problem to do so.
Thanks.
08-14-2015 06:04 AM - edited 08-14-2015 06:04 AM
Hi fendy,
why do you use this InvokeMethod node? Why don't you simply write a zero to a local variable of your "numeric" control?
My criteria is switch on as user input and switch off after 5 seconds and reset back all the numerial and toggle switch to default value.
When you want to have a certain step-by-step procedure a state machine would be fine!
Have states like "wait for user input", "output signal to hardware", "wait delay" and you will be fine…
08-14-2015 11:24 AM
Hi Fendy,
Here is an example of a state machine. In the "Check Time" case, you can replace "Wait Event" with whatever states you want to do during the alotted time after the button press.