Hi Venky,
I am slightly unclear what you mean when you say you "will call the VI." Currently, there is no mechanism for calling a VI from MathScript (from the Window, an m-file script, or the node). Do you wish to exchange values between the MathScript Window and a VI? If so, you do not need to use a temp file. You can create global variables in the MathScript Window and node. For example, to make
B a global variable, type
global B;You will need to type this command in both the MathScript window and the node. Then, any changes to
B in one place will be reflected in the other. You mention you cannot use a MathScript node because your script can change. You can create an output variable on the MathScript node and use it in your VI as if you just read it from the temporary file. Also, in LabVIEW 8.20, you can use the eval command to execute a string. If your script can change, perhaps this function would work for you. Note, however, that this command is not available in the run-time engine (so it would not work if you wanted to build an application).
As you discovered, MathScript does not currently support a "delay" function. Can you provide some details about the particular version of the function you are interested in? We can then consider it for a future addition to MathScript.
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments