LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open/Close state switch

I'm using mech. switch and I want to stop my VI once it's triggered. I can also put this application to a sequence stracture and will move to the next frame till the switch is triggered. Do I need to do this in digital or analog? Any help would be appreciated.
Thanks in advanced!
______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 1 of 4
(2,823 Views)
While you could do this in analog, you are better off using a digital input.  Generally a +5V signal on the input means true, and a 0V input means false.
 
You'll have to provide details on what type of DAQ hardware you're using if you need more help.
0 Kudos
Message 2 of 4
(2,807 Views)
I have the following hardware:
PCI-6024E
SCXI-1000 / SCXI-1180 / SCXI-1302
 
Thanks!
______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 3 of 4
(2,790 Views)
Hi FlipTek,

A good place to start will be checking out the examples in LabVIEW. You can get to them by navigating in LabVIEW to the Help menu » Find Examples. This will bring up the Example Finder. A few good examples to look at for your application will be the digital measurement examples. They can be found when browsing by task under Hardware Input and Output » DAQmx » Digital Measurements.



Here is an example I modified which will stop a loop when the value changes from a high state to a low state.



I hope this helps!

Regards,
Kent
Applications Engineer


Message Edited by tnek on 03-11-2008 06:07 PM
Download All
0 Kudos
Message 4 of 4
(2,761 Views)