LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retriggering using a software Trigger for a PXI-4462

I have a PXI-4462 data acquisition card that is mounted in a PXI-1036 chassi.  Three of the four input channels are being used.  The first channel is a reference voltage signal for comparison.  A software trigger is set on this channel.  The other two channels are connected to voltage signals as well.  I have the DAQmx Timing SampQuant.SampMode property set for continuous samples.  I also have a Start Task VI set outside a while loop, and I'm reading the acquired signal using the DAQmx Read inside the while loop.  I am continuously acquiring 61440 samples from each channel at a sample rate of 61440 samples.  This sample rate and number of samples can be changed by the user.  I was originally having a problem getting this code to run, but since making futher modifications the code runs and, for the first acquisition,acquires data at the correct level based on the trigger set, but the starting acquisition point drifts further away from the trigger point I originally set after the first acquisition.  It seem like the trigger is only being used for the first acquisition.  I was looking at some of the retriggering examples available using the example finder, and I downloaded a retriggering example from the ni website but it does not support the PXI-4462.  I tried resetting the trigger inside the while loop after I start the task but this generates an error.  Is there a way I can retrigger after each acquisition to eliminate this problem?
 
Thanks!
0 Kudos
Message 1 of 1
(2,406 Views)