User`s guide

iv Contents
I/O Driver Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
Real-Time Windows Target Library . . . . . . . . . . . . . . . . . . . . . . 4-7
Simulink Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
Analog Input Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
Analog Output Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-12
Digital Input Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15
Digital Output Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16
Counter Input Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19
Encoder Input Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-22
Output Signals from an I/O Block . . . . . . . . . . . . . . . . . . . . . . . 4-24
Variations with Channel Selection . . . . . . . . . . . . . . . . . . . . . . 4-26
Using Analog I/O Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-29
I/O Driver Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-29
Normalized Scaling for Analog Inputs . . . . . . . . . . . . . . . . . . . 4-30
5
Troubleshooting
Building Older Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Plots Not Visible in Simulink Scope Block . . . . . . . . . . . . . . . 5-3
Failure to Connect to Target . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
Sample Time Too Fast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5
S-Functions Using Math Functions . . . . . . . . . . . . . . . . . . . . . 5-6