xPC Target    

To xPC Target Block

This block behaves as a sink and usually receives its input data from a control device. The purpose of this block is to write a new value to a specific parameter on the target application while it is running.

This block is implemented as an M-file S-function. The block is optimized so that it only changes a parameter on the target application when the input value differs from the value that existed at the last time step. This block uses the parameter downloading feature of the xPC command-line interface.

Block Parameters

xPC Target application name -- The function xpcsliface automatically enters this name. It is the same name as the Simulink model that xPC Target uses to build the target application.

Path to block in model running on host PC -- The function xpcsliface automatically enters this name and uses it to access the block identifier.

Parameter name -- The function xpcsliface automatically determines this name and enters it. Notice that the parameter name might not match the label name for that parameter in the Block Parameters dialog box. For example, the label name for a gain block is Constant value, but the parameter name is Value.


  Creating a Custom Graphical Interface From xPC Target Block