ni.com is currently experiencing issues. Support teams are actively working on the resolution.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I use a pretriggering mode with an analog hardware trigger?

I am trying to collect x number of points before and n number of points after an analog trigger (of specified level) is reached. I am using LabWindows with a PCI-6110 board. Any hints on the proper combination of functions to use is appreciated.
0 Kudos
Message 1 of 2
(2,438 Views)
Garland,

A good starting point would be the DAQsingleBufStopTrig.c example that is included when NI-DAQ is installed with support for LabWindows/CVI.

To have x points before the trigger and n points after the trigger, you configure a buffered data acquisition with a buffer size x+n and specify in DAQ_StopTrigger_Config that you want n points after the trigger. The result will be a buffer of data including x points before the trigger and n points after.

Regards,
Molly K.
National Instruments
Molly K.
Web Support & Operations Manager
National Instruments
0 Kudos
Message 2 of 2
(2,438 Views)