LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spst

HI

 

I want setup a button like SPST in Labview...where the logic is something like A or B else C. Can anyone help?

 

Huz 

0 Kudos
Message 1 of 4
(2,937 Views)

Your question doesn't really make sense. A SPST switch is either on or off - there's no in-between state (excluding physical effects like arcing, etc). Further, it cannot have an "else C" state.

 

I'd normally ask if this is a homework question, but your previous posts don't indicate that it would be, so could it be an issue of no hardware experience?

0 Kudos
Message 2 of 4
(2,921 Views)

Hello

 

Sorry for the confusion. This is not a Home work questions. What I am trying to do is use only ONE boolean button to do following three actions:

 

Press the button once: State On (~500 msecs)

Press the button again: State Off ( ~500 msecs)

Else: Nothing happens

 

Right now my code looks like this:

 

Mycode.png 

 

 What I would like to do is just one button to do this logic.

 

I hope this is little bit more clear.

 

Huz

 

0 Kudos
Message 3 of 4
(2,914 Views)
If you use a latch button and a while loop you could do this easily with a shift register to remember the previous state, but I don't see any timing in your VI. You could also do it with a switch button by using an event structure (see attached example).
0 Kudos
Message 4 of 4
(2,900 Views)