Products & Services Solutions Academia Support User Community Company

Learn more about xPC Target   

Version 2.5 (R14) xPC Target

This table summarizes what's new in Version 2.5 (R14):

New Features and Changes

Version Compatibility Considerations

Fixed Bugs and Known Problems

Related Documentation at Web Site

Yes
Details below

Yes
Summary

Fixed Bugs
Open Bugs

No

New features and changes introduced in this version are

xPC Target Explorer (Beta)

This release includes a Beta version of the xPC Target Explorer. It is a graphical user interface for xPC Target. It provides a single point of contact for almost all xPC Target interactions, including

The xPC Target Explorer GUI runs on your xPC Target host machine.

You can use xPC Target Explorer or your usual xPC Target interfaces to perform xPC Target activities. This is the Beta release of the xPC Target Explorer. The MathWorks encourages you to use this new interface and provide feedback.

See the xPC Target User's Guide for details on xPC Target Explorer.

Registering Active X Controls

Associated with the xPC Target Explorer is a new script, xpc_register_ocx. If you are running MATLAB remotely (accessing MATLAB over the network), run this script to register Active X controls before you start xPC Target Explorer.

Multiple Targets

xPC Target now supports concurrent use of more than one target from a single host. In conjunction with this, the xpc method has been updated to accept the different communication types ('RS232' or 'TCPIP'). See the xPC Target User's Guide for details.

Real-Time Data Acquisition to Files on Target PC

xPC Target supports a new scope type of file. This new scope type enables you to acquire signal data in real time and store it to a file on the target PC. Using the new file objects and methods, you can then retrieve the file data to the host to plot or otherwise analyze the signal data. You do not need to have a target application loaded on the target PC before accessing the target PC file system.

To support this new capability, xPC Target now also provides

This functionality is limited to file systems of type FAT-12, FAT-16, or FAT-32.

See the following chapters of the xPC Target documentation:

Numeric Precision in Host/Target Communications

To improve numeric precision, the format of xPC Target host PC to target PC messaging has been converted to binary mode. This implies the transfer of the full binary image of data values during xPC Target interactions such as signal monitoring and parameter tuning.

C and COM API

You no longer need to purchase xPC Target Embedded Option to create stand-alone GUI applications with the xPC Target C or COM API. See the xPC Target API Guide for reference pages for the C and COM API functions and methods.

To deploy a GUI application to other host PC systems that do not have your licensed copy of xPC Target, you need the xPC Target Embedded Option. If you do not have the xPC Target Embedded Option and would like to deploy your GUI application, contact your MathWorks representative.

In support of this new feature, xPC Target provides the following new demos in the C:\matlabroot\toolbox\rtw\targets\xpc\api folder. These demos illustrate how to use the xPC Target COM API to create custom stand-alone GUI applications.

COM API GetParam Syntax Change

The GetParam method now returns the correct size of elements returned. In earlier versions, this method required you to provide an element size.

Support for Model Referencing

xPC Target now supports the new Model block from Simulink. This block allows one model to include another model as if it were a block. This feature, called model reference, works by generating code for included models that the parent model executes from a binary library file. See the Real-Time Workshop Release Notes for further information. When using model referencing with xPC Target, note the following Configuration Parameter parameter setting requirements:

Compatibility Considerations

If you download a target application to a target PC, and that target application was built from a model that contains referenced models, you cannot tune the parameters on any of the models. This is a limitation of Real-Time Workshop.

Run-Time Parameters

xPC Target provides the following target object methods to enable you to save run-time parameters for your target application. These parameters are those you would like to save for reuse, such as those for parameter tuning. See the xPC Target User's Guide for details:

In conjunction, the following API functions enable the same feature. See the xPC Target API Guide for details:

Inlined Parameters

xPC Target now supports the use of inlined parameters from Real-Time Workshop.

Configuration Parameters xPC Target Options Dialog

In previous releases, the Simulink model Configuration Parameters dialog contained the xPC Target options in two panes. The xPC Target options are now contained in one pane, available as a node in the Real-Time Workshop tree. The functionality of the dialog is otherwise identical.

RS-232, RS-422, and RS-485 Add-on Board Drivers

New drivers have been added for serial communication support:

xPC Target provides a set of functionally similar drivers for these boards. See Serial Communication of the xPC Target I/O Reference for a description of the new driver blocks.

Number of Available UDP Blocks Increase

The number of available UDP blocks per model has been increased. You can now have up to 32 UDP blocks in any given model (any combination of Send and Receive blocks).

xPC Target Methods and Parameters

The following enhancements have been made to xPC Target methods and parameters:

These changes require you to update any xPC Target scripts or M-files that refer to these methods, parameters, or properties. Your existing scripts and M-files will no longer run on xPC Target otherwise.

See the xPC Target User's Guide for details.

xPC Target Scopes

The following enhancements have been made to xPC Target scopes:

To xPC Target and From xPC Target Blocks

The behavior when you double-click the To xPC Target and From xPC Target blocks has changed. If you double-click a To xPC Target or From xPC Target block that has been properly configured, the target parameter or signal that the block refers to is highlighted. If the To xPC Target or From xPC Target block has not yet been configured, double-clicking the block has no affect. In previous releases, double-clicking on these blocks displayed the Block Parameters dialog for the block.

To edit the block parameters for the To xPC Target or From xPC Target blocks, right-click on the block and select Mask parameters.

xPC Target From File Block

xPC Target has a new block, From File. This block reads data from a file on the target PC hard disk and distributes that data in chunks every sample time. As the xPC Target kernel on the target PC reads the file data, it writes that data into a software buffer whose size is user-defined.

I/O Device Driver Support

xPC Target 2.5 has new driver blocks, including support for the following boards:

Some xPC Target 2.5 driver blocks have been updated, including

Obsolete Device Drivers

Compatibility Considerations.   xPC Target has obsoleted the drivers for the following manufacturers:

You can still access these driver blocks by typing the command xpcobsoletelib at the MATLAB Command Window. Existing models that use these drivers will still work. However, their presence is not guaranteed for future releases. Do not use these driver blocks in new models.

In addition, in the xPC Target library (xpclib), there are new versions of the following Measurement Computing Incremental Encoder drivers. Use the new version of these drivers.

To access the previous versions of these drivers, use the xpcobsoletelib command. The presence of the obsoleted versions of these drivers is not guaranteed for future releases.

Recreate Target Boot Disk and Rebuild Applications

Compatibility Considerations

If you upgrade your xPC Target software from a previous version, you must recreate the target boot disk and you must rebuild your xPC Target applications.

  


Related Products & Applications

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

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