Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Is double buffer mode possible with measurment studio?

I having been working with Visual Basic and my PCI 6711 card for awhile now, and i have asked some questions and called national instruments. My question that i have left is this:

I want to generate waves using double-buffered mode as my waveforms need to be able to be very large. So i have seen examples that are under the NI-DAQ folder and examples on the National Instruments website. Well, these examples are based off writing another halfbuffer on an event such as changing the frequency or adjusting which waveform to output. I want to split up my large waveform into multiple buffers. So really the only event that will happen during the playing of the waveform is the progress event firing. I have tried to w
rite the next buffer when the progress event has fired, but it doesnt work. The first buffer is written and output correctly, but nothing else happens. So in short i get half of my waveform played. Can anyone offer suggestions? Also, in just Visual Basic without measurement studio you need to enable double-buffered mode, so do i need to do that with measurement studio? Also, do i have to use continous generation to do double-buffered mode?

One other question i have is in regards to filling the buffer up. I have heard that my NI-6711 has a buffer size of 8,192 samples, and that it has to be full before it can be output. So i am wondering if i am not filling the buffer up entirely. However, i have made sure that my buffer is at least twice as big as the 8,192 buffer size of my 6711 card.


Thanks,

Gerry
0 Kudos
Message 1 of 2
(6,059 Views)
Hello GVanhorn,

Your board has support for DAQmx. I would advise you to use DAQmx since you would not have to worry about the double buffered acquisition. DAQmx makes it easy for you by implementing circular buffered operations. Look for examples in DAQmx or use DAQmx functions for your application.
Thanks for contacting National Instruments.

Serges Lemo
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(6,059 Views)