preload(d,scanData)
provides scan data to the DataAcquisition interface d
for device output.
If the DataAcquisition interface has output channels, you can queue
data using preload and then call start. Data
generation then starts on the output channels in the background without blocking MATLAB®.
Calling start begins background generation. The interface repeats the sine wave
automatically as the data output. Calling stop terminates the output generation.
start(d,"RepeatOutput")
% ⋮
stop(d)
Define and queue a cosine wave for output of one cycle on a single channel.
DataAcquisition interface, specified as a DataAcquisition
object, created using the daq
function.
Example: d = daq(...)
Scan data for device output, specified as an M-by-N matrix, where M is the number of
data scans and N is the number of output channels in the
DataAcquisition object. Each column of scanData
contains the data for one channel. For a single channel, the data is a column
vector.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.