xPC Target    

Setting the Value of a Target Object Property from the Target PC

You can type commands directly from a keyboard on the target PC. These commands create a temporary difference between the behavior of the target application and the properties of the target object. The next time you access the target object, the properties are updated from the target PC:

  1. On the target PC keyboard, press C, or point the target mouse in the command window.

    The target PC activates the command window.

  1. Type a target command. For example, to change the frequency of the signal generator (parameter 2) in the model xpcosc, type
  2. Change the stop time. For example to set the stop time to 1000 type

    The parameter changes are make to the target application but not to the target object. When you type any xPC Target command in the MATLAB command window, the target PC returns the present properties to the target object.

    Note The target PC command setpar does not work for vector parameters.


 Setting the Value of a Target Object Property from the Host PC Getting the Value of a Target Object Property