LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Statechart (LVSC) initialization?

The documentation for the LabVIEW Statechart "Run Statechart" function states,

 

"Init? is TRUE if you want to restart the statechart from any initial conditions you provide"

 

How can a user provide initial conditions to a Statechart? More specifically, how can a user define the initial OUTPUTS and the initial StateData?

 

 

0 Kudos
Message 1 of 4
(3,236 Views)

Hi Southern_Cross,

 

Since I don't have the Statechart module installed I can't be sure, but I believe that the "initial conditions" would be provided by default values assigned to the Inputs.ctl wired into the VI. If you want to try verifying this, it seems like this would be an easy test to perform.

 

Andy F.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(3,185 Views)

So, no progammatic solution?

0 Kudos
Message 3 of 4
(3,181 Views)

@Southern_Cross wrote:

So, no progammatic solution?


Like Andy said, you can provide the data to the typedef as an input. You could do this programtically and bundle the inputs yourself.

0 Kudos
Message 4 of 4
(3,173 Views)