02-03-2010 12:25 PM
Hello,
I am trying to share (simply) a variable between the Mathscript windows and a Mathscript node. I do not know why, but the use of the "global" Matlab function makes the mathscript node output formats change.
I am looking for a "Mathscript RT module V9.0.1" as it seems it exists. French technical support has some difficulties to find it ...
Solved! Go to Solution.
02-03-2010 10:58 PM
Hi,
When you make a variable global in MathScript Node, LabVIEW can determine the data type of that variable only at run time. Then, you must configure the data type of the terminal manually.
02-04-2010 05:57 AM
02-04-2010 04:54 PM
Hello,
The MathScript RT Module version 9.0.1 you speak of is the 2009 SP1 release of the MathScript RT Module. While available internally, it has not yet shipped. This would explain the difficulty in finding it.
As ttrr notes, you must configure the data type of the global variable manually. You mention you are using LabVIEW 2009. I'm not sure what you mean by the real double is forbidden. In the screenshot below, you should be able to choose that type manually. What do you see instead?
Grant M.
Senior Software Engineer | LabVIEW MathScript | National Instruments
02-05-2010 01:52 AM
Thank GrantM ... but I had already tried and after the modification of the data type, the answer (in french 🙂 )of the compiler is that it can not compile the mathscript node 😞
Does it work for you ?
02-05-2010 10:56 AM
Hi patrick33,
The code that you attached should not report an error, so it seems like something has gone wrong with your installation of MathScript. My best guess is that it is the issue described in this knowledgebase article. Your signature says that you are using the f3 patch, which is a good start. But the KB lists some other steps to take when you see errors about MathScript being unable to compile. Can you try the steps in the article and let us know if that fixes the problem?
Thanks,
jattas
LabVIEW MathScript R&D
02-06-2010 05:07 AM
GREAT, its works!
Find Bad Instantiations.exe detected 11 errors.
Then I removed the \LabVIEW Data\InstCache\9.0 folder and restart LabVIEW.
Now, Find Bad Instantiations.exe does not detect error and my VI with a mathscript node (with "global" inside) can be compiled.
Many many thanks jattas.