LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

capture voltage when switch input made

I'm reading a voltage input. I would like to grab the voltage when a physical switch is made. Is there an example?

 

Thanks,

Ed 

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

Try searching the shipping examples for the term "Triggering"

 

 

- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 2 of 4
(2,820 Views)

Well, close but not quite there yet.

 

The trigger and gate vi is pretty close. However, since I'm using a mechanical switch input to the manual input of the vi I get a stream off data from the switch close to open.  I tried modifying the rising and falling settings and all the other setting but to no success. 

 

 

0 Kudos
Message 3 of 4
(2,800 Views)

What DAQ card do you have? Some support digital input state change detection. You can set this up in software and poll the input line, and use a Value(Signaling) to trigger an event case to then poll the analog input for it's value. Is the analog signal changing fast? If so there may be some lag between the poll event and the input read.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 4
(2,798 Views)