Returns AO scan status
mdaqAOScanIsDone(linkID) mdaqAOScanIsDone()
This function checks if analog output scan session is completed. Returns %T if scanning is completed (analog outputs are no longer updated), otherwise function returns %F.
linkID: Valid connection link ID (optional)
Generate sine and sawtooth waveform in periodic mode. Sample update frequency 1000Hz, duration - Inf - interrupted by user code.
sineData = sin(linspace(0, 2*%pi, 1000)) + 1.0; sawtoothData = linspace(0, 5, 1000); mdaqAOScanInit(1:2, [sineData' sawtoothData'], [0,5], %F, 1000, -1); mdaqAOScanStart(); if mdaqAOScanIsDone() == %F then disp("AO scan in progress"); else disp("AO scan is done"); end sleep(5000); mdaqAOScanStop(); if mdaqAOScanIsDone() == %F then disp("AO scan in progress"); else disp("AO scan is done"); end | ![]() | ![]() |