Skip to main content

Customer Login

This content is for Speedgoat customer only. Log in to see content.

Forgot your password?

Don't have a Speedgoat account? Create an account.

Documentation
CONTENTS
https://www.speedgoat.com/help/slrt/page/icon_documentation.jpg

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: autosearch)

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

  • Auto-Search: the default value -1 allows the real-time target machine to auto-search for the I/O module. The priority is defined by the module ID (first vector element for a multinode). The module with the lowest PCI bus/slot number is assigned to module ID 1 (or [1 x]) and the next module found is assigned to module ID 2 (or [2 x]), and so on

  • Explicit Addressing: the location of the module inside the target machine can be explicitly defined by using the [BusNumber, SlotNumber] format. To determine the bus number and the PCI slot number, run the following command in the MATLAB command window:

    speedgoat.showInstalledIoModules
Module ID

A unique module ID must be used for each type of I/O module Setup block in your model.

The module ID has two functions:

  • It defines the logical connection to link the I/O module driver blocks with each other

  • It also has an impact on the PCI slot auto-search feature: if only one I/O module is installed, the module ID must be set to 1. If multiple modules are installed, it must be in the range 1:n. Not all the I/O modules installed in the target machine need be used

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 on-board 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.