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

IO111 - Setup

IO111 - Setup — Configure the IO111 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 of the supported I/O types of this module to be configured, and therefore impacts on the Analog output driver block.

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

  • Quad-DAC 1 (channels 1 – 4)

  • Quad-DAC 2 (channels 5 – 8)

  • Quad-DAC 3 (channels 9 – 12)

  • Quad-DAC 4 (channels 13 – 16)

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

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.

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".

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.

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: Quad-DAC n
Range Channel n

Select one of the four available analog output ranges. The selected range applies to the specified channel only. Each of the 16 channels can have its own specific range.

Enable Thermal Shutdown

When checked, thermal shutdown mode for this Quad-DAC (group of 4 channels) is enabled. The Quad-DAC will automatically go into stand-by mode if the maximum device temperature is exceeded.

Enable Clamp (20mA Current Limit)

When checked, clamp mode for this Quad-DAC (group of 4 channels) is enabled. The Quad-DAC will limit the output current of each of the four channels to 20mA.