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

IO105 - Setup

IO105 - Setup — Configure the IO105 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 block (Analog input).

Ports

This driver block has no input or output ports.

Parameters

Parameter group

This control selects an I/O section, the parameters of which are then shown in the dialog box below the 'Parameter group' field. Possible groups are:

  • Module setup

  • Analog input setup

Parameter group: Module setup
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 Range

The voltage range for the analog input channels. The range is the same for all input channels.

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 enabled. The calibration normally takes approximately 2 seconds, so we recommend 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.

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
Parameter Group: Analog Input Setup
Mode

Select either Single-channel or Multiple-channel. In Single-channel mode you can only acquire one channel but can specify any channel (see the dialog field below). In Multiple-channel mode you can acquire either 2, 4, 8, 16, 32 or 64 channels (see the dialog field below). The first channel is then always channel 1 and the last channel is always the n -th channel.

Number of Channels

In Single-channel mode enter a channel number between 1 and 64 (single-ended coupling) or 1 and 32 (differential coupling). In Multiple-channel mode enter either 2, 4, 8, 16, 32 or 64 (64 is only valid with single-ended coupling). This defines the number of channels to acquire.

Input Coupling

Select either Differential for 32 differentially coupled channels, or Single-ended for 64 single-ended coupled channels.