LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering a DIO line based on AI value.

I am using Labview 7 with an E-series DAQ card. The system is reading a waveform from a function generator. It needs to trigger a DIO line (set it high for few seconds) when the value at Analog input is at certain value (e.g @ peak or zero crossing set by a control on front panel) It's going to be one shot operation. I was wondering if it can be accomplisghed without adding any external hardware/circuit to E-series DAQ card.

Thanks
0 Kudos
Message 1 of 7
(2,884 Views)
You shouldn't have any problem doing this. This is done in the LV Daq and Signal Conditioning course through NI. If you get a chance I would suggest taking it. If you are familiar with LV 7 and the daq assistant you can develop an analog triggering to be dependent on a level and then you will have to develop another task for you digital operation. There are also alot of good examples in LV that should help you with this. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
Message 2 of 7
(2,884 Views)
I am aware of these features in the LV but my concern is how deterministic this approach would be if I let LV control turning the DIO on instead of a built in feature of NIDAQ. In other words can I tie the triggering on Analog Input to actuate the DIO deterministically.

Thanks
0 Kudos
Message 3 of 7
(2,884 Views)
This is a good example of software triggering. THis is almost everything you want. Cont Acq&Chart Samples-Int Clk-Analog Start.vi

for a more deterministic approach you can use hardware triggering. If you have a counter available you will have the ability to use hardware triggering. What kind of determinism are you looking for??
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 4 of 7
(2,884 Views)
Thanks.I'll check the example out. I would like to get a response within 50 msec deterministically. Sounds like a small number but with windows who knows..!

So how would I use hardware triggering using counters?
0 Kudos
Message 5 of 7
(2,884 Views)
Sorry, I meant 5ms or better.
0 Kudos
Message 6 of 7
(2,884 Views)
check out some of the examples that specify hardware triggering. Basically it is monitoring a pin on the counter out put that you will trigger using the gate. If you are familiar with counters you can trigger an output using the gate input. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 7 of 7
(2,884 Views)