Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

stop

Stop background operation

Syntax

stop(s);

Description

example

stop(s); stops the session and all associated hardware operations in progress. Stopping the session flushes all undelivered data that is below the threshold defined by the property NotifyWhenDataAvailableExceeds, and will not fire any more DataAvailable events.

Examples

collapse all

Generate continuous background data until stopped.

Generate output data.

s = daq.createSession('ni');
addAnalogOutputChannel(s,'cDAQ1Mod2',0,'Voltage');
s.IsContinuous = true;
s.Rate=10000;
data=linspace(-1,1,5000)';
queueOutputData(s,data)
startBackground(s); 

Perform other MATLAB operations during the generation, then stop the session.

stop(s); 

Input Arguments

collapse all

Data acquisition session, specified as a session object. Create the session object using daq.createSession. Use the data acquisition session for acquisition and generation operations. Create one session per vendor and use that vendor session to perform all data acquisition operations.

See Also

Functions

Introduced in R2010b

Was this topic helpful?