High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquisition with starttrigger

Hello
 
i have try to build a program  with a StartTrigger from this model:
I work on a PXI-5122 in a NI Computer.
 
The program has to be in the start to work with a softwaretrigger.
The problem is he run in the timeout from FetchDouble.
When i not configure the timing, the measurment work but not on the correct time.
 
My Porgram:
Thread a:
scopeSession.Timing.ConfigureTiming(SampleRateMin, RecordLengthMin, referencePosition, 1, enforceRealtime);              
 
PrecisionTimeSpan triggerHoldoff = PrecisionTimeSpan.FromSeconds(20.0);
PrecisionTimeSpan triggerDelay = PrecisionTimeSpan.Zero;
scopeSession.Trigger.ConfigureTriggerSoftware(triggerHoldoff, triggerDelay);
scopeSession.Measurement.Initiate();

PrecisionTimeSpan timeout = new PrecisionTimeSpan(5.0);
waveformByte = scopeSession.Channels[ChannelName].Measurement.FetchDouble(timeout, 1, waveformByte);
 
And in
Thread b:
i start only the trigger to fetch the data for a test
scopeSession.Trigger.StartTrigger.SendSoftwareEdgeTrigger();
 
What i make wrong?
Please when you have a example for all triggers then give it to me.
0 Kudos
Message 1 of 1
(3,676 Views)