Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

triggering PCIe-6361

Solved!
Go to solution

I am trying to acquire data using a PCIe-6361 with LabWindows/CVI 8.1.0 (using DAQmx) on a Windows XP machine.

It's analog data synchronized to a digital trigger signal, and I have the data going into ai0, with the trigger going into PFI0. Right now, the trigger is set up as the start trigger, with the reference trigger unused.

First question is: what exactly is pretriggering? I've tried to read the various posts, and the help section is less than helpful.It seems to be data acquired prior to the start trigger.

I need to set the system up to act like an oscilloscope, with a post-trigger delay. That is, the trigger pulse comes along and then the system waits x milliseconds and then acquires data.

0 Kudos
Message 1 of 5
(3,289 Views)
Solution
Accepted by pblase

Pre-trigger samples are unique to reference triggers.  Essentially a reference trigger is a "stop" trigger, where you have X samples to acquire before the trigger occurs and Y samples to acquire after.

 

If you want a delay from when the trigger occurs to when you start acquiring data, I would recommend to use a Start Trigger.  There is a Start Trigger Delay property that will allow you to wait until X amount of time has passed from the trigger to when you start acquiring data.  The delay is derived by counting ticks of the AI Sample Clock Timebase (100 MHz timebase by default, giving a resolution of 10 ns).

 

The relevant functions in the C API to delay the start of the acquisition are:

 

    -DAQmxSetStartTrigDelayUnits(taskHandle, DAQmx_Val_Seconds);


    -DAQmxSetStartTrigDelay(taskHandle, float64 data);

 

 

 

Best Regards,

John Passiak
0 Kudos
Message 2 of 5
(3,282 Views)

Thanks.

0 Kudos
Message 3 of 5
(3,262 Views)

Which version are these function calls in? They aren't valid in DAQmx Device Driver 9.1 / LabWindows/CVI 8.1.0.

0 Kudos
Message 4 of 5
(3,247 Views)

Ah, you use the DAQmx_StartTrig_Delay property in the DAQmxSetTriggerAttribute call.

0 Kudos
Message 5 of 5
(3,245 Views)