03-18-2009 07:24 AM
Hello,
Pleae help because this has been driving me crazy!
I am using a series of mathcript nodes to call up 4 x m files. Those top level m files also calls up other m files. But under the dependencies list of the Project Explorer, it only lists the 4 x top level m files. Anyway, it all runs fine but when the exe is built and ran, it by passes the m files functions without any error report.
When the exe is built are ALL the m files compiled or just the ones on the dependencies list? Do I need to include the m files in the directory of the exe file?
The run time engine has some unsupported mathscript functions, how do I find/filter out unsupport functions in the m files?
Is there anything else I need to check to get the exe file working properly?
03-25-2009 01:42 AM
If you are using "Current VI's Path" then this Knowledge Base article may help you:
http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363?OpenDocument
The path is different when it is built as an application - it includes the application's filename almost like an extra directory, so you need to strip this out when it is an application.
03-25-2009 05:40 AM
Paul
I think you missunderstood my post. I did not use "Current VI path". The question is specific to MATHSCRIPTS calling up M FILES and EXE builder.
03-26-2009 12:06 AM
I am sorry - I have not done much with mathscript nodes yet.
I had a look in the Labview help and it says this:
http://zone.ni.com/reference/en-XX/help/371361E-01/gmath/mathscript_node/
"The LabVIEW Run-Time Engine does not support MathScript Nodes with warning glyphs. If a VI includes a MathScript Node with a warning glyph, you must remove the warning glyph from the MathScript Node before you build a stand-alone application or shared library. The LabVIEW Run-Time Engine also does not support certain MathScript functions. To include a MathScript Node in a stand-alone application or shared library, you might need to modify scripts that contain these unsupported functions."
One of the things that causes the warning glyph is the use of include functions. So it seems you can't do this under the run-time.
03-26-2009 04:00 AM
Hi Paul,
Thanks for your attempt. I have already checked for the unsupported function and found that not to be a problem. From the debug, I found that the EXE, when built, is not calling up the secondary level m files (ie the m files that are called up from other m files). Please refer to my first post.
I have also noticed that the Dependencies list from the Project Explorer does not include those m files. Are only those listed on the Dependencies list gets compiled into the EXE application? Is there anyone who has experience with dealing multiple m files using MATHSCRIPT and successfully compiled it into an EXE?
03-30-2009 11:03 AM
03-31-2009 09:32 AM
Hi Grant,
I am using version 8.6.
Regards,
Duc
03-31-2009 11:04 AM
04-01-2009 03:00 AM
Hello Grant,
Thanks for the good reply. Please can you also check that 3rd level and 4th level m files are also called? Currently, I am using 4 levels of m files.
Thanks in advance,
Regards,
Duc
04-01-2009 12:25 PM