Currently I have code below
s = daq.createSession('ni');
s.IsContinuous = true;
s.Rate = 10000;
data = linspace(-1,1,5000)';
lh = addlistener(s,'DataRequired', ...
After executing stop(s), daq will stop generate new data. I just wanna to know if there is any way I can continue queueOutputData without create a new session?
Thanks sooo much!
My goal is to generate a triangular ramp signal that user could pause and continue whenever they want