Physical Device Connections
Real-Time Windows Target includes a library of I/O driver blocks that provide connections between physical I/O devices and real-time models. You can run HIL simulations to observe how Simulink models respond to real-world behavior. The I/O driver block library enables you to connect I/O signals to a range of I/O boards.
Real-Time Windows Target I/O driver blocks enable communication using either ASCII or binary data protocols of arbitrary format. Supported communication protocols include UDP for standard network connections, RS-232 for serial lines, and CAN for controller area networks.
Available I/O driver blocks include the following:
- Analog Input: Defines A/D converters to digitize analog signals as input signals to a Simulink model
- Analog Output: Sets up D/A converters to digitize analog signals as output signals from a Simulink model
- Digital Input: Connects digital input signals from external hardware to the Simulink model
- Digital Output: Connects digital output signals from the Simulink model to external hardware
- Counter Input: Counts pulses or measures frequency using hardware counters on I/O board(s)
- Frequency Output: Generates pulse width modulation (PWM) signals on I/O board(s)
- Encoder Input: Includes feedback from optical encoders
- Packet Input: Receives unformatted binary data
- Packet Output: Sends unformatted binary data
- Stream Input: Receives formatted ASCII data
- Stream Output: Sends formatted ASCII data
Real-Time Windows Target block library. The library enables you to connect I/O devices to Simulink signals for inputs and outputs while retaining I/O board connections and board settings for use with future models.