LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate Waveform

Hi Henley,

 

You are getting an Error -200560 as your Wait Until Done VI times out before you analog waveform generation is complete. You will always keep getting this error as your clock is set to "Continious Samples" and so the AO task will never get done, as you will be continiously outputting samples. For more information about timeout (sec) input of the Wait Until Done VI refer to the paragraph below:

 

"timeout (sec) specifies the maximum amount of time in seconds to wait for the measurement or generation to complete. This VI returns an error if the time elapses. The default is 10. If you set timeout (sec) to -1, the VI waits indefinitely. If you set timeout (sec) to 0, the VI checks once and returns an error if the measurement or generation is not done."

 

For your application, instead of using Wait Until Done.VI with a timeout, I would rather use DAQmx Is task Done.VI within a while loop to avoid any timing errors. To implement this approach, use the following example: DAQmx - Continuous Analog Waveform Generation

You can also find the latest version of this example in LabVIEW Example Finder:

[LabVIEW] -> Help -> Find Examples -> Hardware Input and Output -> DAQmx -> Analog Generation -> Voltage

 

 

 

 

 

Mikhail
RF Toolkits, Product Support Engineer
National Instruments
0 Kudos
Message 11 of 11
(217 Views)