Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

AnalogWafeform Timing.StartTime is the same for different records in continues mode!

Solved!
Go to solution

We are reading samples from the NI 6132  board through the DAQmx interface in continues mode, i.e.

      inputTask.Timing.ConfigureSampleClock(string.Empty, 1000000, SampleClockActiveEdge.Falling, SampleQuantityMode.ContinuousSamples, 1000);

We successfully read analog waveform records in call back function, and we look at samples - they are correct.
We need to know the moment when start trigger has happened for each acquisition.

The data is read to the variable
     AnalogWaveform<double> awf  = ...;

and we do the following

  if(awf.IsPrecisionTimingInitialized)
  {
      InitialXTimeSeconds = awf.PrecisionTiming.StartTime.WholeSeconds;
      InitialXTimeFraction = awf.PrecisionTiming.StartTime.FractionalSeconds;
  }

 

The problem: InitialXTimeSeconds and InitialXTimeFraction are the same for all records and equal to the start of the task, i.e. time of the acquisition of the first record. What is wrong?

 

0 Kudos
Message 1 of 2
(3,852 Views)
Solution
Accepted by topic author gremlm

Hey I noticed you posted to this question in another forum here. Continue working on this in that forum. 

 

Rohama K.
0 Kudos
Message 2 of 2
(3,842 Views)