xPC Target    

Setting Target Object Properties 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.
  1. 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
  1. The parameter changes are made 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 current properties to the target object.

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


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