IsContinuous
Specify if operation continues until manually stopped
Description
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.
Values
- {
false
} Set the
IsContinuous
property tofalse
to make the session operation stop automatically. This property is set tofalse
by default.true
Set the
IsContinuous
property totrue
to make the session operation run until you executestop
.
Examples
Create a session object, add an analog input channel, and set the session to run until manually stopped:
s = daq.createSession('ni'); addAnalogInputChannel(s,'cDAQ1Mod1','ai0','voltage'); 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