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

IO117 - Setup

IO117 - Setup — Configure the IO117 input block

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 of the supported I/O types of this module to be configured and therefore impacts the other driver blocks.

Ports

This driver block has no input or output ports.

Parameters

All configuration settings of the IO117 module are organized in the two 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")
Analog Inputs Tab
Active Channels

Select the active input/output channels in a vector. A defined number of channels can be selected using square brackets, for example [1 2 3]. A sequence of channels can be selected using a colon, for example, 1:4.

Voltage Range

Select the voltage range for the input channels: ±1V, ±2V, ±5V or ±10V.

The selection affects all channels at once. It is also possible to configure them individually, see parameter 'Set Voltage Range per Channel' for more information.

Input Coupling

Select the input coupling: Single-ended or Differential.

In single-ended mode, all 32 input channels are available. In differential mode, only 16 channels can be used and channels 17 to 32 turn into the negative inputs for the first 16 channels. This selection affects all channels at once. It is also possible to configure them individually, see parameter 'Set Input Coupling per Channel' for more information.

Automatic Data Correction

Enable or disable automatic data correction. When enabled, the factory calibrated onboard correction values are used to correct every analog-to-digital conversion.

Set Voltage Range per Channel

Enable this option to select the voltage range for every channel individually. To set all channels at once, disable this option, set the parameter 'Range Channel' and click on 'Apply'. This will also reset the individual selection for the next time this option gets enabled.

Set Input Coupling per Channel

Enable this option to select the input coupling for every channel individually. To set all channels at once, disable this option, set the parameter 'Input Coupling' and click on 'Apply'. This will also reset the individual selection for the next time this option gets enabled.