Indicate if operation is complete
When working with the session-based interface, the read-only IsDone property indicates if the session operation is complete.
Create an acquisition session and see if the operation is complete:
s = daq.createSession('ni'); addAnalogOutputChannel(s,'cDAQ1Mod2', 'ao1', 'vVoltage'); s.queueOutputData(linspace(-1, 1, 1000)'); s.startBackground(); s.IsDone
ans = 0
Issue a wait and see if the operation is complete:
ans = 1