Sign in to follow this  
lgunseor

Button for beginseq() and endseq()

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this