VeriStand Model Execution Rate Verification

Updated Apr 9, 2025

Environment

Software

  • VeriStand

Users might wonder why the time step duration in the VeriStand model is shown in microseconds instead of the model rate they set, such as 2 Hz, 50 Hz, 100 Hz, etc. This article will show how to verify that the VeriStand model execution rate matches the set model rate. Even though the model rate is not displayed directly, users can verify that the model operates at the expected rate through indirect method.

The VeriStand model Time Step Duration channel is used to monitor how long a model takes to execute, which is usually in microsecond.  To verify the model execution rate, users can design a model that adds 100 per loop and check the chart to see if it adds 100 at the rate that they have set, such as every 2 Hz in this example. If the Model Count parameter does not increase, then the model's calculations must be performed within the set period.

 

To do so, please follow the steps below.

 

  1. Design a model that is similar as below by adding 100 per loop in the model.

 

 

  1. Add the simulation model into VeriStand system definition file.

 

 

  1. Set the model rate to the desired rate, 2 Hz in this example.

 

 

  1. Create the Chart, Model Count and Outport indicators in VeriStand. Then, deploy the project.

The Model Count channel is always showing 0 and does not increase. The model executes in microseconds and waits for the next iteration, repeating this process every 0.5 second System Time based on the model's rate settings. This pattern continues with each subsequent iteration.