start
Start DataAcquisition background operation
Syntax
Description
start(
starts the DataAcquisition interface background operation. When the input acquisition and output generation begin depends on channel configuration and preloaded output data:d
)
If the DataAcquisition has only input channels, the acquisition begins immediately, collecting scan data, which you can access later with the
read
function. The default scan duration is 1 second.If the DataAcquisition interface has only output channels, generation begins immediately if data is already queued with the
preload
function. If no data is queued, output begins when data is made available withwrite
function.如果DataAcquisition同时具有输入和输出通道,则输入采集与输出生成同时开始和结束,从而导致相同数量的扫描。
start(
启动背景操作连续运行。如果已经有数据d
,"Continuous")preload
function, output generation begins immediately along with acquisition on any input channels. Otherwise, acquisition begins when you executewrite
. The operation continues until you callstop
. As output scan data is generated or input scan data is acquired, you might need to callwrite
或者read
while the DataAcquisition is still running.
start(
starts the background operation, generating periodic output in a repeating loop of the output scan data. If there is data already available from thed
,"RepeatOutput")preload
function, output generation begins immediately along with acquisition on any input channels. Otherwise, generation and acquisition begin when you executewrite
. The operation continues until you callstop
. If input scan data is being acquired, you might need to callread
while the DataAcquisition is still running.
start(
或者d
,“期间”,span
)start(
starts the background input acquisition to run for a finite span of time, specified as either a duration or a number of scans. If the DataAcquisition has any output channels, the start occurs but the duration specification is ignored.d
,"NumScans",span
)