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

IO106 - Setup

IO106 - Setup — Configure the IO106 input/output blocks

Library

Simulink Real-Time - Speedgoat

Description

All the supported I/O types for this module can be configured in the Setup block dialog box. This block will therefore have an impact on the other driver blocks (Analog input, Start conversion and Read channels). The Analog input (DMA) block is an exception as it does not use the Setup block.

Ports

This driver block has no input or output ports.

Parameters

Parameter Group

This control selects the displayed configuration section, the parameters of which are then shown in the dialog box below the "Parameter Group" field. The groups available 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

Autocalibration

The autocalibration is enabled by default to obtain maximum measurement accuracy. The autocalibration function compensates for component aging and minimizes the effects of temperature on accuracy. 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 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: Disabling the autocalibration may cause the wrong values when the input range is changed.

Inter-Module Synchronization

Select either Initiator (default) or Target. If Initiator is selected, A/D conversions are initiated by this module and the module outputs a pulse train to optionally trigger other IO106 I/O modules where "Inter-Module Synchronization" is set to Target. The pulse train is sent on the I/O connector SYNC I/O pin. Ground is on the SYNC RTN pin (see the I/O pin mapping section for pin numbers).

If your target machine contains a single IO106 I/O module, then Initiator must be selected. If Target is selected, the module itself does not start its A/D conversions, but instead triggers them using a pulse train from another IO106 I/O module where "Inter-Module Synchronization" is set to Initiator. The pulse train is received on the SYNC I/O pin (ground is on the SYNC RTN pin). With this setting, there must be at least one other IO106 I/O module present with "Inter-Module Synchronization" set to Initiator, and the modules' SYNC I/O and SYNC RTN pins must be physically wired together (SYNC I/O to SYNC I/O, SYNC RTN to SYNC RTN). To use this feature with more than two IO106 I/O modules, all SYNC I/O pins and all SYNC RTN pins must be wired together (see the I/O pin mapping section for pin numbers). Exactly one IO106 I/O module must be set to Initiator and all others to Target.

When using the "Inter-Module Synchronization" setting, the initiator must use the Start Conversion driver block, and the target the Read Channels driver block. Otherwise, with a single module, use the Analog input driver block to read the channels.

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
Number of Channels

The number of channels to read. This parameter is a scalar value and must be a multiple of 2. The IO106 I/O module has 32 input channels in single-ended mode (see "Input Coupling" field below), 31 (30) input channels in pseudo-differential mode, and 16 channels in differential mode. This field is restricted to multiples of 2 because the IO106 I/O module returns two channels with each read of the analog input data FIFO. If you, for example, want to acquire 13 channels, define the "Number of Channels" as 14 and ignore the last channel (14) in your model. In single-ended and differential input coupling mode, the first channel returned by either the Analog input or the Read Channels driver block is always channel 1 (or 0 according to the IO106 reference manual), and the last channel is always the n'th channel based on the "Number of Channels" setting. In pseudo-differential input coupling mode, channel 1 is used as a common reference for all other input channels and its value is of no interest. Therefore, when in this mode, the Analog input and Read Channels driver blocks only output channels 2 to n.

Range

The input range for all A/D channels. This driver does not allow different ranges for individual channels.

Input Coupling

Either Single-ended, Pseudo-differential or Differential. For more information see the "Number of Channels" field above, and the IO106 reference manual.

  • Single-ended: For single-ended channels, each input signal is measured with respect to the common input return. That is, each channel reports the difference between the input signal voltage and the voltage present on the common input return. This configuration provides the maximum number of input channels, but allows noise and other forms of interference on the common return line to appear in the signal measurement

  • Pseudo-differential: In this mode the first channel is designated as the reference for all other channels, and its sampled value is subtracted from the sampled values of all other channels. With this arrangement, noise and interference on the common return line is essentially canceled, and the first input line can be used as a "remote sense" line for channels 1 to 31

  • Differential: Each input channel has a dedicated associated reference level channel