Digital Output (Single Sample)
Output single sample to multiple digital lines of data acquisition device
Libraries:
Data Acquisition Toolbox
Description
The Digital Output (Single Sample) block synchronously outputs the latest set of data to the hardware at each simulation time step. It outputs unbuffered digital data. Specify the output data as a vector of boolean values.
The block has no output ports. It can have one or more input ports, depending on the option you choose in its dialog box. The data type of the signal at the input port must be a boolean data type.
The Digital Output (Single Sample) block inherits the sample time from the driving block connected to the input port. Digital output is done synchronously, according to the following diagram.
At the first time step (T1), data is output to the selected hardware lines. The simulation does not continue until data is output to all lines.
Note
To use this block, you need both Data Acquisition Toolbox™ and Simulink® software.
Some devices are not supported by the Simulink blocks in Data Acquisition Toolbox. To see if your device supports Simulink, refer to Supported Hardware.
Other Supported Features
This block supports the use of text accelerator mode, but not Rapid Accelerator or code generation.
The block supports the use of model referencing, so that your model can include other Simulink models as modular components.
For more information on these features, see the Simulink documentation.
Ports
Input
Parameters
Version History
Introduced in R2016b