LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

save files and loads file in mathscript node

I am developing a data acq system. I used Mathscript to process the data. It is very slow (v8.0). I am wondering if it is because that in the Mathscript node I loaded the files and saved the files couple times. But I need to pass the variables from one mathscript node to another mathscript node. The variables are 3-dimensional arrays. Mathscript node doesn't allow me to output 3-dimensional arrays. Please help me out. Thanks in advance.
0 Kudos
Message 1 of 2
(6,324 Views)
Hello,

LabVIEW 8.20 MathScript is faster than that in version 8.0, especially if you are performing many matrix indexing operations.  A suggestion for improving the speed of the MathScript node is to remove as many loops as possible by vectorizing the mathematical operations you are performing.  Unfortunately, MathScript does not operate on three- or higher-dimensional arrays.  If you want to pass data between two MathScript nodes, there are two methods besides using an external file (as disk access can be quite slow).  As it seems you tried to do, create an output variable on one MathScript node and wire that to an input variable on another MathScript node.  A second option is to use a global variable to share data between the nodes.

Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
0 Kudos
Message 2 of 2
(6,319 Views)