Relay Help, Keeping true, true.

Hi, I’m Paul from team 1403. I have my button one from my joystick set a case structure to true and there I would use set relay and so on.

My team wants the button 1 to set the case structure to true, and stay true and then upon pressing button 1 again, it sets the structure to false, and keeps it false. Here is a picture of what my “code” looks like:

I’m not that great at LabView, since I’m used to writing all this in C. Please give me some suggestions. Thank you.

You could use global variables, or use some logic with the value saved between loops. If the value changes and it changes to true, then change the value of the thing you want.

(there might be a better way but I don’t know it).

button toggle.vi (8.52 KB)
button toggled.png


button toggle.vi (8.52 KB)
button toggled.png