Button for beginseq() and endseq()


lgunseor

Recommended Posts

Have a button setup with a quick sequence, want to use the button to toggle a couple of relays every time I hit the button.

quick sequence below

if (sequence.start_stop.running)

   endseq(start_stop)

   strCaption = "SOLENOID2"

    solenoid1 = 0

    solenoid2 = 1

else

   beginseq(start_stop)

   strCaption = "SOLENOID1"

   solenoid1 = 1

   soleniod2 = 0

endif

The start_stop sequence is just a dummy sequence with a while loop

while(1)

    x = 1

    y = 1

endwhile

 

The beginseq() and the endseq() don't seem to be working and the strCaption doesn't seem to be changing either so what am I doing wrong?

Trying to run this on a Labjack U12

Link to comment
Share on other sites

Archived

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