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

Analog IO397 - Output v1

Analog IO397 - Output v1 — This driver block is available for the IO397-50k module only.

Library

Simulink Real-Time - Speedgoat

Description

This driver block is available for the IO397-50k module only.

Your model can only contain one of these blocks for each I/O module in your target machine.

Ports

This block has as many inputs as defined by the channel vector.

Inputs
X (X is channel number)

The value to set the analog output X to. Type double.

Parameters

Configurable I/O Module ID

This parameter associates a code module block with a configurable I/O module setup block. Set this value to match the Module ID defined in the setup block of the required configurable I/O module.

Channel Vector

A vector of channels this driver block entity will access. You can specify channels in the range 1-N (N = the number of channels implemented in your specific configuration file defined in the Setup block). The width of this vector also defines the subsequent size of some of the following parameters if scalar expansion applies. With a single block, all the channels of the block are synchronized.

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.

Span

This is the setting for the voltage span of the DAC. The DAC is capable of outputting values within one of several voltage ranges as specified by this parameter:

  • ± 10 [V]

  • ± 5 [V]

  • + 5[V]

  • + 10 [V]

Sample Time

Defines the base sample time at which this driver block gets its sample hit. This parameter can also be set to -1 for inherited sample time. The units are in seconds.