VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Tracing Execution time of a Veristand Simulink Model in Real Time Execution Trace Toolkit

Hello,

i am using an simulink model containing 2nd order z - transform in veristand as dll. i want to know the execution time of that model in my RT.

 

for that i made a trace enabled flag to true in veristand workspace and i got the trace results file in "c:/ni-rt/NIVeriStand/ExecutionTraces". i opened that file in Real - Time Execution Trace Toolkit. i found veristand engine and veristand RT etc, but i haven't found the model in that. Help me to find out the execution time of a model in veristand engine.

 

Regards,

vikas.

0 Kudos
Message 1 of 3
(3,054 Views)

Hello,

In the thread view of your log (enable the thread flag in the veristand channels), you should find a timed loop corresponding to your model.

That being said, I would go for a much easier solution. For a given model, there's a Time Step Duration channel created under the "Execution" category of that model. It returns the execution time in microseconds. It has several advantages: you remain in the NIVS environment, you can map that information to something else, you don't decrease the system performance and reliability (which the trace tool does - even if that is usually a minor effect)...

 

Regards,

--Eric

Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.

0 Kudos
Message 2 of 3
(3,019 Views)

Hi Eric.M,

 

Thanks for your reply.

 

my problem is not only about the execution time, i want to validate the veristand model execution order with Real time Execution Trace toolkit. for example i have 15 models in my veristand project and i have given 4 cores of processor to them and execution order will be some are in parallel and some are sequential. so i want to verify that and prove it to the customer whether the execution order is maintained properly or not.

 

help me in sorting out of that problem.

 

Regards,

Vikas.

0 Kudos
Message 3 of 3
(3,016 Views)