From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

When analog output task is terminated?

Hello everybody,

 

I am using analog output of USB-6002 for excitation of my circuit. Also, I use the analog inputs to read some test points.

The analog output is an arbitrary waveform which is limited to the finite samples and it is not going to re-written.

 

aoTask.Timing.ConfigureSampleClock("",
5000,
SampleClockActiveEdge.Rising,
SampleQuantityMode.FiniteSamples, finalWaveForm.Length);

 

aoWriter.BeginWriteMultiSample(false, finalWaveForm, analogOutputCallback, null);

 

The problem is that I can not determine when the analog output task is done and all the data is written in the physical AO pin in order to stop analog input task. The analog output callback function is called before the waveform is written in AO pin.

 

I appreciate it if somebody gives me an idea.

0 Kudos
Message 1 of 1
(2,179 Views)