12-17-2015 03:10 PM - edited 12-17-2015 03:10 PM
Another day, another question...
Can you tell me how to start a SubVI (or any other piece of code) when my DAQ analog input signal exceeds a certain voltage area?
As an example lets say I just want to set indicator "X" on my front panel to a specific value when my analog input rises above 3V. Can one of you guys give me an example of how to do that?
I am using a DAQ-6343 and LV 2013.
Thanks for your help!
12-17-2015 05:20 PM
12-18-2015 10:27 AM
Hey,
It seems like i need to clarify my question:
I am looking for a option to start a piece of code without having to poll the input constantly. Sorry I did not mention that in the original question, I totally forgot writing that because it was obvious to me when I posted yesterday.
Kind of how an interrupt works on a regular microcontroller.
I have been looking into the DAQmx triggering functions, but it seems you can just start the task itself with these functions, not another subVI (or whatever I want to start). Is this the right way to go?
Can you help me with that?
12-21-2015 09:48 AM - edited 12-21-2015 09:51 AM
Configure your hardware for a voltage triggered aqusition, register an event and let the DAQ device do the polling and comparison....
See Help:Example:Voltage (with events) Continous Input.
In the event reconfigure the trigger condition and restart the task (with different trigger??)