Button for beginseq() and endseq()


lgunseor
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share