cancel
Showing results for 
Search instead for 
Did you mean: 

How to write single point samples to DAQmx task after executing multiple sample point write?

How to write single point samples to DAQmx task after executing multiple sample point write?

Hi,

 

I'm currently hitting a wall here with the following problem: I have a DAQmx I/O where on the same channels single point writes are to be mixed with multiple point writes.

 

To give you the gist of the idea: I have a laser with a power modulation input. While idle the power is controlled through a power meter in closed loop through a LabVIEW PID; this is done using single point analog value writes. At certain conditions however a short modulation burst is to be emitted. For that a multiple point sample write is used. After that burst it's back to regular PID control.

 

Doing single sample writes in a loop, followed by a single multisample write for the burst works fine. However after the multisample write burst the task can no longer be used for writing single samples, giving a buffer size mismatch error.

 

What am I doing wrong?

1 REPLY 1
RavensFan
Knight of NI

Re: How to write single point samples to DAQmx task after executing multiple sample point write?

Attach your VI so we can see what you are doing.