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

IO103 - Setup

IO103 - Setup — Configure the IO103 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 input, Analog output and Digital output).

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

  • Analog output setup

  • Digital output 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 and output channels. The range is the same for both inputs and outputs

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. All input channels are calibrated to a single internal voltage reference. Offset and gain error corrections for each channel are determined during the autocalibration process and are applied to each channel in real-time during data acquisition. Warning: During the calibration process various signals may be present at the output pins, but they will stay inside the configured voltage range.

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, or 16 channels (see Number of channels 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 16 (single-ended coupling) or 1 and 8 (differential coupling). In Multiple-channel mode enter either 2, 4, 8, or 16 (16 is only valid with single-ended coupling). This defines the number of channels to acquire.

Input Coupling

Select either Differential for 16 differentially coupled channels or Single-ended for 8 single-ended coupled channels.

Parameter Group: Analog Output Setup
Active Channels

Values between 1 and 8 in a vector. This driver allows individual D/A channels to be selected in any order. The number of elements defines the number of D/A channels used. For example, to use two of the analog output channels, enter '[1,2]'. Number the channels beginning with 1, even if the board manufacturer starts with 0.

Reset to Initial Values

Define whether the initial values are also applied once the application has stopped. The behavior can be set individually for each channel using a vector. A scalar value applies to all the channels; for example, for individual values, type "[1 0 0 1]", and to set all channels to zero, type "0". "1" means use the Initial Value and "0" means keep the latest value.

Initial Values

Define the initial signal level present on the outputs after the application has been downloaded. The values can be set individually by entering a vector: the value at a certain position in the Initial Values vector is applied to the channel as defined in the Active Channels vector. A scalar value applies to all the channels; for example, for individual values, type "[1 1.5 0 2.5]", and to set all channels to zero, type "0".

Parameter Group: Digital Output Setup
Active Channels

Values between 1 through 4 in a vector. This driver allows individual digital channels to be selected in any order. The number of elements defines the number of digital channels used. For example, to use two of the analog output channels, enter [1,2].

Reset to Initial Values

Define whether the initial values are also applied once the application has stopped. The behavior can be set individually for each channel using a vector. A scalar value applies to all the channels; for example, for individual values, type "[1 0 0 1]", and to set all channels to zero, type "0". "1" means use the Initial Value and "0" means keep the latest value.

Initial Values

Define the initial signal level present on the outputs after the application has been downloaded. The values can be set individually by entering a vector: the value at a certain position in the Initial Values vector is applied to the channel as defined in the enabled channels. A scalar value applies to all the channels; for example, for individual values, type "[1 0 0 1]", and to set all channels to zero, type "0".