07-27-2012 04:32 AM
Hello,
At the moment we are working on a LabVIEW program to teach students about maximum power point tracking (MPPT) for solar panels. Our goal is that students can write there own algorithm and test them. The main difficulty is that this is done using remote panels. So the students don’t have direct access to the system. For the solution we are trying to load an m-file using the mathscript node that is calling the function we made.
Our problem started that it seems that as soon you run the vi the m-file is loaded into the system memory and can not be modified any more. To overcome this problem we are calling the vi by reference. But still this does not always work. It seems it is still reading the old m-file, but if you wait long enough the new m-file is loaded.
How can we make sure the new m-file is loaded? Or is there a better solution to reach our goal?
I included the files that we used to test it. Example_ChangeScript calls MPPTscript. I renamed the script to MPPT.m.txt to upload it. The .txt should be removed. The system is running LabVIEW 2011 SP1 on Windows XP SP3.
Thank you for your time.
Best regards.