Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

COM1 - external switch launch a SubVI

Solved!
Go to solution

Your description of the switch is changing and contradictory. You previously said:

 


If I push the external switch the first time the LED sould be ON, if I push the external switch the second time the LED sould be OFF, if i push the external switch the third time the LED sould be ON etc

 

 

Now you are saying this:


If I push a external button (COM1, Pin2 and Pin3), at the "VISA Reads" output "read buffer" appears the Input (from Visa Write) in this example is it "Test" as long as I push the button. The LED is ON. If I push the button again, the LED is OFF untill I push the button again.

 

The mechanical Action of this external Button is comparable with Latch until released.


 

Now you're talking about  "as long as I push the button", which means holding it down. Your previous explanation described a "Latch when released" mechanical action. Your new description does NOT describe a "Latch until released". I don't know what it describes since I've never heard of a physical switch that behaves the way you're describing it.

 

If we assume a regular push-button switch, then the following should work:

0 Kudos
Message 11 of 13
(1,368 Views)
Solution
Accepted by topic author zäpfle

Looks like we have a language barrier.

So, for the sake of getting the behaviour of your LED right, is the attached example what you wanted?

 

Kas

0 Kudos
Message 12 of 13
(1,361 Views)

Thanks a lot for your help.

The last example was the solution.

It looks so easy, but sometimes are the simplest things the most difficult.

 

zäpfle

0 Kudos
Message 13 of 13
(1,346 Views)