Documentation search search close
CONTENTS
https://www.speedgoat.com/help/slrt/page/icon_documentation.jpg
v10.0.1.x for R2026a
View other versions

IO425 - Setup

IO425 - Setup — Configure the IO425 LVDT/RVDT/Resolver emulation block

Library

Simulink Real-Time - Speedgoat

Description

Your model can contain only one Setup block for each I/O module in your target machine.

Ports

This driver block has no input or output ports.

Parameters

Main Tab
Module ID

The Module ID has two functions:

  • It defines the logical connection between the Setup block and its I/O blocks

  • It also informs the auto-search feature of the PCI Slot parameter. If only one I/O module of this type is installed, the Module ID must be set to 1. If n modules are installed, it must be in the range 1:n. Not all the I/O modules installed in the target machine need to be used. To see how each I/O module maps to a Module ID, use this Speedgoat API:

    speedgoat.getIoInterfaces("TargetName", "mySpeedgoat")
PCI Slot (-1: auto-search)

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

  • Auto-Search: with the default value -1 the I/O module will be automatically located in the target machine. If you have multiple modules of the same kind, the Module ID defines which module is associated with this block. To see how each I/O module maps to a Module ID, use this Speedgoat API:

    speedgoat.getIoInterfaces("TargetName", "mySpeedgoat")

  • Explicit Addressing: to explicitly define the logical address of the I/O module in the target machine, you can provide the PCI bus and slot numbers as a vector: [bus, slot]. To determine these numbers, run the following command in the MATLAB command window:

    speedgoat.getIoInterfaces("TargetName", "mySpeedgoat", "Advanced", true)

    Note that the PCI address can change whenever an I/O module is added or removed – usually, auto-search is the best option.

Channel Setup

Select the operation mode for each channel. The IO425 supports up to 4 channels. Available options:

  • Disabled

  • 2-Wire LVDT/RVDT (only output A is used)

  • 4-Wire LVDT/RVDT

  • Resolver

General Tab
Output Voltage

Select the maximum output voltage for each channel.

[Note]Note

The minimum and maximum output voltage depends on the installed I/O interfaces. The output voltage follows the applied excitation input signal and therefore reflects all the glitches and noise. Note that the output will always be exactly one cycle behind the input signal.

Phase Offset A

Specify the phase offset (0° to 360°) between the input signal and output A.

Phase Offset B

Specify the phase offset (0° to 360°) between the input signal and output B.

Invert Output A

Select if the output A signal should be inverted (phase shift of 180°).

Invert Output B

Select if the output B signal should be inverted (phase shift of 180°).

Mode

Select if an internal or an external excitation signal should be used.

[Note]Note

Connect the external excitation signal before loading the model on the real-time target machine. This is important because the I/O module automatically calibrates itself to the signal applied during model load in order to achieve maximum sampling resolution without clipping.

If no input signal is applied during model load, select the Enable Manual Input Calibration checkbox.

Frequency

Specify the excitation frequency if an internal excitation is used.

Sample Buffer Size

Specify the sample buffer size if an external excitation is used. The module averages the input signal measured over the specified number of samples to calculate the input frequency. A higher number will give a more stable frequency measurement but changes in the input will be reflected at the output with a higher delay. The buffer size is a trade-off between speed and stability.

As a guide, increase or decrease the number of samples until the measured frequency remains stable, then use the lowest number of samples.

Enable Manual Input Calibration

This setting can be used if the external excitation signal is not present at the input when loading the model on the real-time target machine.

Input Gain

Specify the gain (0 to 255) for the excitation input signal. The optimal value can be determined by reading the system log when the manual input calibration is disabled and the excitation signal is present at the input.

LVDT/RVDT Tab
Initial Position

Define the initial position (-100 to 100) 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 Channel Setup.

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. "1" means use the Initial Position vector and "0" means keep the latest value.

Null Offset

At the extremes (-100 % or +100 %), an offset can be added to define the minimum output voltage instead of zero. This does not change the maximum output voltage, it just applies a positive offset to the lower voltage. The null offset is only available for the 4-wire mode.

Resolver Tab
Initial Position

Define the initial position (0° to 360°) 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 Position vector is applied to the channel as defined in the Channel Setup.

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. "1" means use the Initial Position vector and "0" means keep the latest value.