Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I output successive waveforms on an AO channel?

I have 4 different wave forms that I would like to output in succession on an AO channel. The timing/size etc. is identical.

 

I could create one large output array that combines all the waveforms into a single buffer, but I prefer to use a loop. When I try this I get an error: -200288.

 

I am programming in VB 2008.

 

Any ideas?

 

Thanks!

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

Hi Steverino,

 

Here is a KnowledgeBase article that helps to describe the cause of the error.  Is it possible that you are you are attempting to retrigger the acquisition?  Also, are you using hardware timing for the acquisition?  Have you tried to use a shipping example that comes with the DAQmx driver?  There are .NET 2.0 and 3.5 Analog Output examples that are setup for VB2008 that should help to accomplish this task, however no example brings in the waveform from file.  You must use continuous acquisition to reload the buffer with a new waveform, and you also must pre-load the buffer with the first waveform before starting the task.  The easiest method might be just to make one long waveform as you have previously done.

 

Best,

Adam
Academic Product Manager
National Intruments
0 Kudos
Message 2 of 2
(2,836 Views)