Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Use analog input to start code execution

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!

0 Kudos
Message 1 of 4
(3,980 Views)
You need to take some of free free LabVIEW tutorials if you do not know about the comparison functions (i.e. GTE) and the case statement.
0 Kudos
Message 2 of 4
(3,968 Views)

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?

0 Kudos
Message 3 of 4
(3,945 Views)

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??)

 

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 4 of 4
(3,900 Views)