LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Create and Save a MathScript in executables

Hello,
 
I would like to know if labview 8.20 supports dynamically creating and saving m-files?
My purpose is that the user will could create a m-file in built apps (EXEs) and save it.
Its like the "LabView 8.20 MathScript Dynamic Loading" post, but now i need to create a new m-file, and the user does have the permission to save this file.
 
Thanks,
 
 
Jeff
0 Kudos
Message 1 of 2
(6,616 Views)
Jeff,

I'm not sure I fully understand your question.  An m-file is simply a text file.  LabVIEW can dynamically create and save these files by simply sending a string to the "Write to Text File" VI.

Now, if you are asking about calling these newly-created files through MathScript within a built application, this is not possible.  In order to call m-files at all from within a built application, the m-files must be added to the project tree.  Also, in the build specifications, the "Enable MathScript support" item must be checked in the Advanced settings.  When the application is built, the m-files will be compiled and it is this version of the m-file that will be run with the built app even though the m-file may change in the future.  The issue is that the MathScript compiler is not available in the run-time engine, so it is not possible to call m-files that aren't specified at build time.

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