From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Monitor PFI1 without Polling

I am using the PFI1 line to trigger my acquisitions multifunction DAQ board, at the same time I need use the trigger to apply dll function to latch a encoder. what method could I use without polling as time is very critical.
0 Kudos
Message 1 of 2
(2,214 Views)
Hi,
what programming API are you using, and what hardware? I'm assuming e-series DAQ under traditional since you've said PFI1.
You could work with occurences which would work in this case. Under DAQmx however, we don't currently have events, so depending on the version of LabVIEW you're using we might have another option.
For traditional, the available events are going to be 0 - Acquired (or generated) n scans
or if you could work with an analog trigger, then 5 or 6 depending on rising or falling slope trigger.

The following would be a good starting point
http://zone.ni.com/devzone/devzone.nsf/webcategories/61D4A77EDFF4B01686256797004CDD96

If you're using LabVIEW 7.1 and DAQmx however, you can use the new timed loop structure.
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/2d3f6e2f9aaa7b2a86256d600075b88e?OpenDocument

Hope that helps.

Thanks

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
0 Kudos
Message 2 of 2
(2,188 Views)