LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to spawn mathscript window within LabVIEW program? (LabVIEW 8.5)

Is it possible or are there plans to allow the programmatic spawning of a Mathscript window within a LabVIEW program (in both the development and executable environments) to operate on LabVIEW-generated data?  This would allow users to enter their .m scripts and apply them to the data.  This is or would be an extremely powerful option.

Sincerely,

Don
0 Kudos
Message 1 of 6
(3,201 Views)

Hi Don

unfortunately there isnt a way of doing this at the moment. similarly with formular nodes the maths code must be hard programmed into the application. Also I don't know if there are any imidiate plans within labVIEW to add such a feature to increase the functionality of text based scripting but for up-to-date information on labVIEW maths releases look at http://www.ni.com/toolkits/lv_math_int.htm

I hope this has been of some help.

best regards

Graham Green
Software Product Marketing
NI | Emerson
0 Kudos
Message 2 of 6
(3,188 Views)
For what I need, the ability to programatically spawn the Mathscript window with LabVIEW will be essential.  The NI Math interface toolkit essentially allows the use of LabVIEW functionality within Matlab (not what I need).
 
I will attempt to make the suggestion to the LabVIEW R&D team.
 
Don
0 Kudos
Message 3 of 6
(3,184 Views)
I'm sorry i cant help more
 
You can place labVIEW in matlab and matlab in Labview but I agree being able to do this without develepment mode would be useful.
 
Good luck with your project, I will also send a request for this feature to be developed.
 
Together we might get somwhere!
 
Graham
Graham Green
Software Product Marketing
NI | Emerson
0 Kudos
Message 4 of 6
(3,174 Views)
You might have more sway than me - but I can't see how this would not be a useful and powerful tool for all....Don
0 Kudos
Message 5 of 6
(3,169 Views)
One workaround might be to design your own MathScript Window that users can launch. The basics would be pretty easy, though some parts could get more difficult.

Here's my idea. Have a simple dialog with a string control that a user can type mathscript commands into. Whenever you see a Return happen, feed the last line into a Mathscript Node with the simple command eval(str), where str is your input string value.

That much would be easy to do. The hard part would be displaying data and variables. The easiest thing to do would be to have the user use a plot command to dynamically view the data in their script.

Just a though; I realize it's far from perfect...
Jarrod S.
National Instruments
0 Kudos
Message 6 of 6
(3,150 Views)