readwrite
Syntax
Description
writes inScanData
= readwrite(d
,outScanData
)outScanData
to the DataAcquisition interface output channels, and
reads inScanData
from the DataAcquisition interface input channels. Input
and output have the same number of scans, determined by the number of rows in the matrix
outScanData
. By default, data is returned to
inScanData
as a timetable. readwrite
supports only
foreground clocked operations, blocking MATLAB until complete.
[
performs the read and write operations, and also returns the scan trigger time to
inScanData
,triggerTime
] = readwrite(d
,outScanData
)triggerTime
as a datetime.
performs the read and write operations, returning a matrix of double values to
inScanData
= readwrite(d
,outScanData
,"OutputFormat","Matrix")inScanData
.
[
performs the read and write operations, also returning the scan times as a column vector of
doubles to inScanData
,timeStamp
,triggerTime
] = readwrite(___,"OutputFormat","Matrix")timeStamps
, and the scan trigger time to
triggerTime
as a datenum double. The rows of the
timeStamp
vector correspond to the rows of the
inScanData
matrix.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020a