MicroLabBox RTI Blocks vs. ConfigurationDesk Function Blocks

Introduction

You can reuse RTI models for MiroLabBox by deleting the RTI blocks in the Simulink model and adding comparable function blocks in ConfigurationDesk.

When the function blocks are added to the signal chain, you can generate the interface to the Simulink model in ConfigurationDesk.

For adding function blocks to the signal chain, refer to Implementing I/O Functionality .

For generating the model interface, refer to Basics on Adding Model Port Blocks to the Signal Chain.


Minimum ConfigurationDesk version

The minimum ConfigurationDesk version to support the MicroLabBox II is ConfigurationDesk 23.2, Release 2023-B.


A/D conversion

The following table shows comparable function blocks for replacing RTI blocks supporting A/D conversion.

RTI Block of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

ADC_CLASS1_BLx

  • Single conversion: Voltage In

  • Burst conversion: Voltage Signal Capture

  • External trigger: Trigger In

Scaling of conversion result required.

ADC_CLASS1_START_BLx

Obsolete

‑

ADC_CLASS1_FAILURE_BLx

Obsolete

ADC_CLASS2_BLx

Voltage In

Scaling of conversion result required.


D/A conversion

The following table shows comparable function blocks for replacing RTI blocks supporting D/A conversion.

RTI Block of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

DAC_CLASS1_BLx

Voltage Out

Scaling of voltage range required.


Bit I/O

The following table shows comparable function blocks for replacing RTI blocks supporting bit I/O.

RTI Block of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

DIO_CLASS1_BIT_IN_BLx

Multi Bit In

‑

DIO_CLASS1_BIT_OUT_BLx

Multi Bit Out

‑


Timing I/O

The following table shows comparable function blocks for replacing RTI blocks supporting timing I/O.

RTI Block of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

DIO_CLASS1_PWM_BLx

PWM/PFM Out

Scaling of duty cycle required.

DIO_CLASS1_PWM2D_BLx

PWM/PFM In

Scaling of duty cycle required.

DIO_CLASS1_PULSE_BLx

Digital Pulse Out

‑

DIO_CLASS1_PW2D_BLx

Not available

As an alternative, you can use one of the following function block types:

  • Digital Pulse Capture: Use the time-stamp values to calculate the pulse width.

  • PWM/PFM In: If the input frequency is constant, you can calculate the pulse width from the duty cycle values.


Electric motor control

The following table shows comparable function blocks for replacing RTI blocks supporting electric motor control.

RTI Block of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

EMC_BC_PWM_BLx

Block-Commutated PWM Out

‑

EMC_ENCODER_BLx

Digital Incremental Encoder In

‑

EMC_ENDAT_BLx

EnDat Master

‑

EMC_HALL_BLx

Hall Encoder In

‑

EMC_MC_PWM_BLx

Multi-Channel PWM Out

‑

EMC_RESOLVER_BLx

Resolver In

‑

EMC_SSI_BLx

SSI Master

‑


Serial communication

The following table shows comparable function blocks for replacing RTI blocks supporting serial communication.

RTI Block of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

DS1202SER_STAT_Cx

UART

Line status flags supported only. To read the modem status flags, you must program a custom function block. Refer to Example of Complex UART Serial Communication (RS232 FlowControl) Using a DS2671 Bus Board.

DS1202SER_TX_Cx

DS1202SER_RX_Cx

DS1202SER_INT_Cx_Iy

DS1202SER_SETUP_Cx

Obsolete

‑


CAN communication

The following table shows comparable function blocks for replacing the RTI CAN blocksets.

Real-Time Interface Blockset

Comparable Function Block Types of ConfigurationDesk

Notes

RTI CAN Blockset

CAN

The CAN function block is one part of implementing CAN communication in real-time applications. The CAN communication itself must be modeled with the Bus Manager in ConfigurationDesk. Refer to Information for Former Users of the RTI CAN MultiMessage Blockset and RTI LIN MultiMessage Blockset.

RTI CAN MultiMessage Blockset


Ethernet communication

The following table shows comparable function blocks for replacing the RTI Ethernet communication.

Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

RTI Ethernet (UDP) Blockset

Ethernet Setup

‑

UDP Transmit

UDP Receive


SPI communication

The following table shows comparable function blocks for replacing RTI blocks supporting SPI communication.

RTI Block of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

DIO_CLASS1_SPI_RX_BLx

SPI Master

‑

DIO_CLASS1_SPI_TX_BLx

DIO_CLASS1_SPI_CYCLE_SETUP_BLx

DIO_CLASS1_SPI_SETUP_BLx


Interrupt handling

The following table shows how the interrupt handling is replaced in ConfigurationDesk.

Blocks of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

ADC_CLASS1_HWINT_BLx

In ConfigurationDesk, the function blocks can generate I/O events that can be used to trigger asynchronous tasks, for example, the Voltage In function block. For more information, refer to Modeling Asynchronous Tasks.

‑

DIO_CLASS1_HWINT_BLx


Nonvolatile data handling

The following table shows comparable function blocks for replacing RTI blocks supporting nonvolatile data handling.

RTI Block of the Real-Time Interface Blockset

Comparable Function Block Type of ConfigurationDesk

Notes

NVDATA_READ_BLx

Non-Volatile Memory Access

‑

NVDATA_WRITE_BLx

USB_FLIGHT_REC_SETUP

Not supported

Replaced by ControlDesk Data Logging. Refer to Introduction to Data Logging.

USB_FLIGHT_REC_BLx

USB_FLIGHT_REC_EJECT

USB Eject

‑


TRC exclusion

Instead of the RTI TRC Exclusion block, which excludes all blocks in a subsystem from the generated variable description file (TRC file), you must use subsystem omission tags (DsVdOmit). These tags let you reduce the content of the generated TRC file even more specifically, for example, by excluding variables. Refer to Adapting the Generation of the Variable Description File.


Redaction