hi everybody,
i am working on an asynchronous write operation as described in
'Asynchronously Reading and Writing with the NI-DAQmx Visual C++ Class Library'
in the Visual Studio .NET documentation.
I've worked with asynchronous read functions and callbacks (the OnEvent function in this example) before, and it worked
well.
Atm i am doing output to 16 digital outputs on my PCI6259 card. I want to output a waveform stored in a vector containing about 1000 samples.
So i installed the event handler for my writer object, and started the output by calling
'WriteMultiSamplePortAsync'.
The problem is, that the callback function 'OnEvent' is called after the first sample of my vector is sent, and not after the complete vector.
i need to know when my whole buffer is through, because i have to recalculate it and send it again...
Anyone has an idea where the problem is?
Thx in advance
markus