Digital Input (Single Sample)
Acquire single sample from multiple digital lines of data acquisition device
Libraries:
Data Acquisition Toolbox
Description
The Digital Input (Single Sample) block synchronously outputs the latest scan of data available from the digital lines selected at each simulation time step. It acquires unbuffered digital data, and delivers this as a vector of boolean values.
The block has no input ports. It has one or more output ports, depending on the option you choose in its dialog box.
The block inherits the sample time of the model. Digital input acquisition is done synchronously, according to the following diagram.
At the first time step (T1), data is acquired from the selected hardware lines. The simulation does not continue until data is read from 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
Output
Parameters
Version History
Introduced in R2016b