12-13-2007 04:08 PM
12-14-2007 06:43 AM
12-14-2007 09:27 AM - edited 12-14-2007 09:27 AM
Yes, so since my script executes repeatedly and uses the same variable names each time, MATLAB at least will not be re-initializing the variables each time the script is run. But does LabVIEW directly access the area of memory where MATLAB stores the array? If not, is there some way to prevent LabVIEW from re-initializing a copy of the array every time?
rpursley8 wrote: I've found that having to initialize variables in MATLAB is kind of slow, but if you can initialize all MATLAB variables earlier, you computations will go faster. Once a variable is defined in the MATLAB script window, that variable is always available for any other MATLAB script calls while the vi is open.
12-14-2007
04:37 PM
- last edited on
04-28-2025
09:54 AM
by
Content Cleaner
Hi,
I would recommend reading the LabVIEW help. There is a great section about memory usage in VIs. Here is the online link for LabVIEW. Basically you need to initialize the array before the loop starts to iterate but that is covered in the help.
12-14-2007 04:48 PM - edited 12-14-2007 04:51 PM
12-14-2007 05:56 PM - edited 12-14-2007 05:57 PM
12-15-2007 12:05 AM - edited 12-15-2007 12:05 AM
12-17-2007 12:50 PM
12-26-2007 05:04 PM
12-29-2007 09:43 PM