01-25-2010 09:45 PM
I am an academic user with a a site license for PDS and a full MATLAB license. I have a control system I'm developing which depends on lsim and fzero. I can see that I can probably port the functioning core of the MATLAB version of the program to Mathscript RT, however, the ultimate goal is to deploy the system as a standalone app. I can live with having to run the prototype on my development system in the short term, but ultimately I need those functions. Is there any hope that standalone version of these functions will appear in Mathscript anytime soon? I'm sure there are sound reasons why something that works in the development system doesn't work in standalone, but perhaps this could be clarified.
Jeff E Mandel MD MS
University of Pennsylvania School of Medicine
01-26-2010 02:46 PM
Hi Jeff,
Take a look at the following forums, they might help you out:
http://forums.ni.com/ni/board/message?board.id=170&message.id=92706&requireLogin=False
http://forums.ni.com/ni/board/message?board.id=450&message.id=1031&requireLogin=False
FLash
01-28-2010 02:51 PM
Thanks, but that doesn't answer my question. More specifically, if I use lsim and fzero_ in my Mathscript routines on my development platform, and then want to implement the system in a standalone PC, or ARM, Blackfin, or some other embedded target, what are the prospects for NI having support for this in the next release (or the one after that)? I can use those functions in the Matlab RTW today, but I can defer implementation of the real-time system for a while, I just don't want to commit to Labview for the development environment for prototyping, only to have to move to MATLAB for implementation because NI doesn't put priority to adding these functions to the list of of functions in standalone and embedded implementations.
Thanks,
Jeff
01-29-2010 02:24 PM
Hi Jeff,
To answer your question, it really depends. Mathscript will always be available when deploying to a Windows or LabVIEW Realtime machine running standalone, however I do not see it being avialable on ARM or Blackfin in the near future.
Hope this helps.
FLash
01-29-2010 02:36 PM
01-30-2010 12:03 PM
I went back and reread the documentation "Control Design MathScript RT Module Functions Not Supported in the LabVIEW Run-Time Engine", and now it makes sense to me. Perhaps "calling the functions without return arguments generates graphical output, which is not supported in standalone applications" would be a better way to describe this.
The Mathematics function minimization routines may work for me, but the attraction of Mathscript RT is greater compatibility between my Matlab codebase and my Labview codebase. There are some routines I'm willing to recode, such as interfaces to monitors and pumps, but my development work on control algorithms will almost certainly going to remain in Matlab. My situation may be unique; I have both Matlab and Labview already, and as long as I'm content to drag my laptop into the OR to test the controller, I'm OK, but the moment I need to compile a standalone version for my eeePC, I have to commit to one platform or the other. Building a box with ARM or Blackfin will require buying new modules for either Matlab or Labview, and finding someone who can handle the implementation (almost certainly there won't be a single individual who will be platform-agnostic). So as I look at the decision as to which platform to choose for my prototype, it becomes important for me to understand a bit more about the roadmap. Perhaps it would help us all if you could answer a few questions:
1) For a Mathscript call that does not draw to the screen, how much work is involved to move it to the standalone version? Is it just pointing at a few different header files and linking to different libraries, or is it some bizarre difference like the development system is in C and the standalone is in Algol?
2) How different is this for embedded targets? Is ARM significantly different than Blackfin?
3) Is all of this simply Mathscript lib_load, and if so, is there an example of a single C file that, with an appropriate #def statement, spits out a development, standalone, ARM, or Blackfin Hello World object?
I understand that you have to prioritize development resources, but some simple statements like "we are committed to supporting all optimization, ode, and integration routines subject to the limitation of no support for screen output in the Spring 2010 release, and will release support for a Mathscript screen control in Fall 2010" or "Significant enhancements to Mathscript RT will not be available in the coming year".
Thanks,
Jeff
02-17-2010 02:14 PM
02-17-2010 04:08 PM
Is there a way to force Mathscript to emit the compiled Labview for my fzero script? The corollary is can fzero call a reference to a VI?
Thanks,
Jeff
02-18-2010 11:09 AM