Skip to Main Content Skip to Search
Product Documentation

Version 2.0 (R12) Real-Time Windows Target Software

This table summarizes what's new and changed in Version 2.0 (R12):

New Features and ChangesVersion Compatibility ConsiderationsFixed Bugs and Known Problems

Yes
Details below

Yes
Summary
Fixed Bugs

New Features and Changes

I/O Device Driver Architecture

Version 2.0 includes a new I/O device driver architecture that simplifies the use of I/O blocks in Simulink block diagrams. After installing a new I/O board in your PC, you place a device driver block in your model and specify board-specific settings (e.g., board address) for this board.

Once you have added a new I/O board to your PC and you have used the device driver dialog box to specify board information, the board information is retained for future sessions. When you add additional blocks, you select an I/O board from a list of installed boards. You do not have to re-enter the same board information for each driver block.

You can use multiple I/O boards in your computer. When doing so, the driver blocks show a list of installed boards for you to choose. This reduces the need to search through a growing list of device drivers.

New I/O drivers allow you to use either normalized units for analog inputs and outputs, or allow you to directly specify units as voltage.

I/O driver blocks now provide a separate I/O block for digital inputs, digital outputs, analog inputs, and analog outputs. This avoids any confusing signal indexing required to specify a combination of analog and digital I/O.

C Compiler Support

Version 2.0 supports Microsoft Visual C/C++ Version 5.0 and 6.0.

Additional Supported I/O Boards

The V2.0 I/O library supports these boards in addition to those previously documented in Real-Time Windows Target release notes and documentation:

Compatibility Considerations

Reinstall the Real-Time Windows Target Kernel

When upgrading from an earlier release, first uninstall the Real-Time Windows Target kernel. In the MATLAB Command Window, type

rtwintgt -uninstall

After you install Real-Time Windows Target software Version 2.0, install the new Real-Time Windows Target kernel. In the MATLAB Command Window, type:

rtwintgt -install

Depending on which version of Windows you are using on your PC, you may need to reboot your PC before using the Real-Time Windows Target software. If so, a message appears indicating a reboot is required.

Enter New External Mode Interface Filename

The name of the external mode interface file was changed from win_tgt to rtwinext. If you create a new Simulink model, the new filename is entered. If you have a Simulink model that used Real-Time Windows Target software Versions 1.0 or 1.5, you need to change the filename using the following procedure:

  1. In the Simulink window, from the Tools menu, click External mode control panel.

  2. On the External Mode Control Panel dialog box, click the Target interface button.

  3. In the External Target Interface dialog box, and in the MEX-file for external mode box, enter:

    rtwinext
    
  4. Click OK.

Remove I/O Adapter Blocks from Your Simulink Model

I/O Adapter blocks have been eliminated from Real-Time Windows Target software Version 2.0. You need to remove all I/O Adapter blocks from your Simulink model. Before removing these blocks, you should record board and connectivity information.

You now enter specific board information in the individual driver blocks. However, you only have to do this once. After entering information in the first block, you can select your board from a pull-down list in subsequent blocks.

Replace I/O Driver Blocks in Your Simulink Model

Real-Time Windows Target software Versions 1.0 and 1.5 had only two driver blocks: RT Input and RT Output. In Real-Time Windows Target software Version 2.0, the drivers are divided into Analog Input (A/D), Analog Output (D/A), Digital Input, Digital Output, and others.

Remove all Real-Time Windows Target software Version 1.0 and 1.5 blocks from your Simulink model and replace them with Version 2.0 blocks. Replace RT Input blocks with Analog Input and Digital Input blocks, and replace RT Output blocks with Analog Output and Digital Output blocks. If you had a block with both analog input and digital input, you must replace this block with two new blocks.

Fixed Bugs

External Mode Interface

Minor changes and bug fixes have been made to the V2.0 external mode interface. Data is displayed at the end of a simulation even when the number of points collected differs from the specified buffer size.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS