| Contents | Index |
xPC Target Library for Humusoft
Hardware Output | Block Input Data Type | Scaling |
|---|---|---|
TTL | Double | < 0.5 = TTL low |
From the list, select 1, 2, 3, or 4. This driver allows the selection of the encoder channel numbers in any order. The number of elements defines the number of encoder input channels used.
For example, to use the first, second, and fourth PWM channel lines, enter
[1,2,4]
Number the lines beginning with 1, even if the board manufacturer starts numbering the lines with 0.
Enter a vector of 0s and 1s, one for each encoder channel in Channel Vector. The length of this vector must be the same as the length of Channel Vector. Each Input Filter Vector element corresponds to its equivalent in Channel Vector. Enter 1 to filter, or 0 to not filter the measured signal. Use this parameter to eliminate short spurious pluses. The input noise filters are disabled by default.
0 — Disables the input noise filter.
1 — Enables the input noise filter.
Specify the function of the I input (index). Enter a vector of values, one for each PWM channel in Channel Vector. The length of this vector must be the same as the length of Channel Vector. Each Input Function Vector element corresponds to its equivalent in Channel Vector. Enter one of the following values for each channel:
| Value | Operation |
|---|---|
| 0 | No function (disabled) |
| 1 | Reset counter when low |
| 2 | Reset counter when high |
| 3 | Reset counter on rising edge |
| 4 | Reset counter on falling edge |
| 5 | Reset counter on either edge |
| 6 | Enable counting when high |
| 7 | Enable counting when low |
Enter the base sample time or a multiple of the base sample time.
If only one board of this type is in the target PC, enter
-1
to automatically locate the board.
If two or more boards of this type are in the target PC, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type
getxpcpci

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |