LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to load a user defined mathscript function at run-time in an executable?

I am currently allowing a customer to define their own matlab script for post-processing their data file. This is all well and good in the development environment, beecause when I re-load this VI, it searches my MathScript search paths and re-loads the .m file if it has changed. However I am noticing that when doing a build to an exe the MathScript node seems to be compiled from the file as it is at build time.

 

Is there anyway to avoid this? Can I programatically call the MathScript function such that it does the search at run-time? Any ideas would be much appreciated.

0 Kudos
Message 1 of 3
(3,079 Views)

Hey,

 

How are you including the .m file? Do you think you could post a screen shot of your code?

 

Thanks

Britton C.
Senior Software Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,051 Views)

I'm encountering the same problem.  I believe it is unfortunately just not possible, as the LabVIEW Runtime lacks the ability compile mathscript at runtime.  This affects both calling a function in a .m file, or using eval() with a script in a string.

 

Perhaps NI could confirm this?

0 Kudos
Message 3 of 3
(2,935 Views)