Preparing the Plant Model for VeriStand
Preparing a model properly enables real-time reading and writing of model signals and parameters during runtime.
Signals at model root level are automatically detected by the compiler as model inports/outports and shown accordingly in NI VeriStand.
Model harnessing is necessary for signals that are not located at the model root level. These signals can be made available in NI VeriStand for reading/writing purposes by routing them through Inports or Outports from the VeriStand Simulink block library. This library is installed automatically with the NI VeriStand Model Generation Add-on for MATLAB.
After the add-on is installed, the VeriStand blocks show up in the Library list.

To enable reading and writing of model parameters in NI VeriStand, they must be declared as Simulink parameter objects before compiling the model. These parameters can be updated individually or in groups during runtime.
How to interface with I/Os and Parameters of Simulink® Models in VeriStand
How to interface with 1D-Array Parameters of Simulink® Models in VeriStand