06-24-2008 08:41 AM
06-25-2008 03:39 PM
06-25-2008 04:18 PM
Hello ASU,
Hurricane82d is correct; you can use a change detection event on a digital line to monitor your limit switch. There is an example available in the LabVIEW Example Finder. (Open LabVIEW and go to Help» Find Examples... Navigate to Hardware Input and Output» DAQmx» Digital Measurements» Read Dig Chan-Change Detection.vi. This will allow you to trigger a software event.
There are other possibilities you using the digital trigger to control your DAQ card. For instance you can use it as a start trigger to start a task, a reference trigger to take samples, or you could even gate a counter task and control a sample input or output clock with the trigger. Unfortunately you cannon use it as a start/stop trigger directly. The closest you can get is gating a counter task. If the default stat of your limit switch is gnd then you can gate a counter output task that you use to generate a clock when the gate goes high. You can choose how you want to use this signal depending on what you want to have happen when this limit is reached.
If you'd like to post more information about your application, setup, and goals it would be easier to make recommendations.
Cheers,