User`s guide
4 Advanced Procedures
4-10
2 In the left column, double-click Real-Time Windows Target. Click and drag
the Analog Input block to your Simulink model. Remove the Signal
Generator block and connect the Analog Input block to the Transfer
Function block.
Your Simulink model will look similar to the figure shown below.
You next task is to enter parameters for the Analog Input block. See “Analog
Input Block” on page 4-10.
Analog Input Block
The Real-Time Windows Target I/O blocks allow you to select and connect
specific analog channels to your Simulink model.
After you add an Analog Input block to your Simulink model, you can enter the
parameters for this I/O driver. This procedure uses Humusoft’s AD512 I/O
board as an example:
1 Double-click the Analog Input block.
The
Block Parameters: Analog Input dialog box opens.
2 In the Sample time box, enter the same value you entered in the Fixed step
size
box from the Configuration Parameters dialog box. For example,
enter
0.001