Waits until AO scan is done.
mdaqAOScanWait(timeout) mdaqAOScanWait(linkID, timeout)
This function waits (blocking function) until analog output scan session is done or the timeout is reached.
linkID: Valid connection link ID (optional)
timeout: Amount of time in seconds to wait (-1 - wait indefinitely)
Generate sine and sawtooth waveform in periodic mode. Sample update frequency 1000Hz, duration - 5 seconds.
sineData = sin(linspace(0, 2*%pi, 1000)) + 1.0; sawtoothData = linspace(0, 5, 1000); mdaqAOScanInit(1:2, [sineData' sawtoothData'], [0,5], %F, 1000, 5); mdaqAOScanStart(); mdaqAOScanWait(-1); disp("AO scan is done."); | ![]() | ![]() |
Results: