This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Specify if operation continues until manually stopped


When working with the session-based interface, use IsContinuous to specify that the session operation runs until you execute stop. When set to true, the session will run continuously, acquiring or generating data until stopped.



Set the IsContinuous property to false to make the session operation stop automatically. This property is set to false by default.


Set the IsContinuous property to true to make the session operation run until you execute stop.


Create a session object, add an analog input channel, and set the session to run until manually stopped:

s = daq.createSession('ni');
s.IsContinuous = true
s = 

Data acquisition session using National Instruments hardware:
   Will run continuously at 1000 scans/second until stopped.
   Operation starts immediately.
      Number of channels: 1
      index Type  Device   Channel  MeasurementType      Range        Name
      ----- ---- --------- ------- ----------------- ---------------- ----
      1     ai   cDAQ1Mod1 ai0       Voltage (Diff)  -10 to +10 Volts

See Also