LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I force SVE to (re)initialize variables?

I have a whole bunch of shared variables and I'm using the handy intial value property that comes with DSC.  However, I was surprised to find that the initial value is not applied every time I run my VI.  The values are what they were when the VI was last run.  Sure enough, according to the documentation, the initial values are only applied when the SVE starts.  Bummer!  Is there a way to force the SVE to initialize all its variables?  Otherwise, I have to include a huge error-prone list of SV initialization in my VI ... yuck!

0 Kudos
Message 1 of 3
(2,554 Views)
Did you try to use in block diagram "undeploy library.vi" and later "deploy library.vi", this will initialize SV to default value.
0 Kudos
Message 2 of 3
(2,531 Views)
That works great -- thanks!

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