Documentation search search close
CONTENTS
https://www.speedgoat.com/help/slrt/page/icon_documentation.jpg
v10.0.1.x for R2026a
View other versions

IO113-20 - Setup

IO113-20 - Setup — Configure the IO113-20 input/output blocks

Library

Simulink Real-Time - Speedgoat

Description

Your model can contain only one Setup block for each I/O module in your target machine.

The Setup block dialog box allows all the supported I/O types of this module to be configured and therefore impacts on the other driver blocks (Analog output, Digital output, Digital input).

Ports

This driver block has no input or output ports.

Parameters

All the configuration settings of the IO113-20 module are available in the three tabs of the Setup parameter dialog.

Main Tab
PCI Slot (-1: auto-search)

There are two approaches for mapping this block to a specific I/O module installed in your target machine. All modules of the same type must be configured using the same method.

  • Auto-Search: with the default value -1 the I/O module will be automatically located in the target machine. If you have multiple modules of the same kind, the Module ID defines which module is associated with this block. To see how each I/O module maps to a Module ID, use this Speedgoat API:

    speedgoat.getIoInterfaces("TargetName", "mySpeedgoat")

  • Explicit Addressing: to explicitly define the logical address of the I/O module in the target machine, you can provide the PCI bus and slot numbers as a vector: [bus, slot]. To determine these numbers, run the following command in the MATLAB command window:

    speedgoat.getIoInterfaces("TargetName", "mySpeedgoat", "Advanced", true)

    Note that the PCI address can change whenever an I/O module is added or removed – usually, auto-search is the best option.

Module ID

The Module ID has two functions:

  • It defines the logical connection between the Setup block and its I/O blocks

  • It also informs the auto-search feature of the PCI Slot parameter. If only one I/O module of this type is installed, the Module ID must be set to 1. If n modules are installed, it must be in the range 1:n. Not all the I/O modules installed in the target machine need to be used. To see how each I/O module maps to a Module ID, use this Speedgoat API:

    speedgoat.getIoInterfaces("TargetName", "mySpeedgoat")
Module Type

Select the analog output voltage range according to your module.

Autocalibration

Check this box if the module should calibrate itself the next time this model (target application) is downloaded and initialized. The autocalibration function compensates for component aging and minimizes the effects of temperature on accuracy. We recommend keeping this parameter enabled. The calibration normally takes approximately 2 seconds, so we suggest increasing the host-target communication time-out in the model configuration parameters to allow for this. The status of the calibration is displayed on the target screen. The calibration is not re-executed during normal start/stop operation once the target application has been downloaded. Check this box every time the Output Range in the Analog Outputs tab is changed, or the 3rd Order Low-pass Filter box is modified. Warning: During the calibration process various signals may be present at the output pins, but they will stay inside the configured voltage range.

3rd Order Low-pass Filter

Check this box if a third order low-pass filter should be applied in each analog output channel. The cut-off frequency is 100 kHz

Analog Outputs Tab
Active Channels

Choose the active input/output channels by selecting the corresponding checkboxes. For each active channel, a separate row for the channel settings is displayed.

Mode

Select either Single-ended or Differential. For Single-ended channels, each output signal is referenced between the HI line and the Output return (GND). For Differential channels, the voltage is referenced between the HI line and LO line. For more information, refer to the I/O pin mapping section and the technical reference manual of the I/O module.

Output Range

Select the output voltage range for the output channels: ±10 V or ±5 V when the Module Type ±10 V and ±5 V is selected or ±5 V or ±2.5 V when the Module Type ±5 V and ±2.5 V is selected. One selection for all analog channels.

Initial Value

Define the initial signal level present on the specific output after the application has been downloaded. The values can be set individually by entering the initial value for each channel according to the selected output range.

Reset to Initial Value

Define whether the initial value is also applied once the application has stopped. The behavior can be set individually for each channel using the checkbox.

Digital I/O Tab
Channels 1-4

Select the Input or Output direction for channels 1 to 4. For output channels, the options to set initial value and reset to initial value are displayed.

Channels 5-8

Select the Input or Output direction for channels 5 to 8. For output channels, the options to set initial value and reset to initial value are displayed.

Initial Value

Define the initial signal level present on the specific output after the application has been downloaded. The values can be set individually by choosing the initial value for each channel to be either Low (0) or High (1).

Reset to Initial Value

Define whether the initial value is also applied once the application has stopped. The behavior can be set individually for each channel using the checkbox.