Specifications

i
Contents
1
I/O Drivers
I/O Driver Block Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Memory-Mapped Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
PCI Bus I/O Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
xPC Target I/O Driver Structures . . . . . . . . . . . . . . . . . . . . . . . 1-5
Updated Driver Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
2
RS232 I/O Support
Introduction to RS-232 Drivers . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
Hardware Connections for RS-232 . . . . . . . . . . . . . . . . . . . . . . . 2-3
Simulink Blocks for RS-232 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
MATLAB Message Structures for RS-232 . . . . . . . . . . . . . . . . . 2-4
Host and Target PC Communication . . . . . . . . . . . . . . . . . . . . . 2-5
RS-232 Synchronous Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
Adding RS-232 Driver Blocks (Synchronous) . . . . . . . . . . . . . . 2-8
Creating RS-232 Message Structures (Synchronous) . . . . . . . 2-13
RS-232 Asynchronous Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-16
Adding RS-232 Driver Blocks (Asynchronous) . . . . . . . . . . . . 2-16
Creating RS-232 Message Structures (Asynchronous) . . . . . . 2-22
Building and Running the Target Application (Asynchronous) 2-25
RS-232 Simulink Block Reference . . . . . . . . . . . . . . . . . . . . . 2-27
RS-232 Setup Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-27
RS-232 Send/Receive Block (Synchronous) . . . . . . . . . . . . . . . 2-29
RS-232 Send Block (Asynchronous) . . . . . . . . . . . . . . . . . . . . . 2-30
RS-232 Receive Block (Asynchronous) . . . . . . . . . . . . . . . . . . . 2-30
RS-232 MATLAB Structure Reference . . . . . . . . . . . . . . . . . . . 2-31
RS-232 Send/Receive Message Structure (Synchronous) . . . . 2-32
RS-232 Send Message Structure (Asynchronous) . . . . . . . . . . 2-33