VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Execution.Model Command in LabVIEW simulation model

I have a simulation model written in LabVIEW that is working.  I need to be able to disable the model occasionally.  It looks like this should be achievable by selecting "Initial state paused" in the Model Settings for the model in the System Explorer. It still runs when I do that, so it's not something the environment handles for the model.  Which means I need to make the model look at the value and behave accordingly.

 

I see that "Execution.Model Command" is an input on the model block in VeriStand, but how do I read this value from LabVIEW?

 

Or is there another built in capability that's used disable a model?  (If I have to I know I can create a data input to do it.)

 

If it matters, I'm currently using VeriStand 2020 R6.

0 Kudos
Message 1 of 2
(99 Views)

It looks like the value of the model settings (in the VeriStand System Explorer) is not applied when deploying using the TestStand ASAM XIL Framework Create step.  Use the ASAM XIL Framework Set Variable Values step to set the model run state.  Note that the model may run briefly before the variable value pauses it.

0 Kudos
Message 2 of 2
(50 Views)