LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

storing internal variables in mathscript/scilab nodes

Solved!
Go to solution
Is it possible to store values of internal variables in mathscript nodes? Maybe having an initialization section where variables are set up, and then updated afterwards. And then something to reset them when the vi closes? Im guessing not, im guessing that we have to do the same thing that labview does, pass the new outputs to the inputs, but it is much more natural in a text based language to do it this way (for me anyways).
0 Kudos
Message 1 of 2
(2,945 Views)
Solution
Accepted by topic author Gordal

Hi Gordal,

 

You can use the save and load commands to store variables for your scripts into a file.  Note that these commands will cause a warning glyph to occur which reduces performance, so what I suggest is the following:

 

 ms_loadsavevars.png

Message 2 of 2
(2,924 Views)