LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Does Labview Mobile/PDA module also support mathscript?

I want to implement some a little complicated algorithms in the application which need to be shown in PDA (Windows Mobile OS). The exciting thing is that LabView provides Mathscript to implement the similar work as Matlab. However, when I added the Mathscript node in my Labview Block Diagram, I can't "run" the VI (The prompt on the "Run" button shows that there are some errors but can't show what errors are) and connect to the PDA device. I can run this in Labview on the PC without any problem.

 

I know some codes in Mathscript need to use the functions provided by Matlab. Does this mean that we can't use the Mathscript node in my programs if I want to implement it in a PDA rather than shown only in the PC?

 

Also another problem, I found some functions don't work when I use Mathscript. For example, "sscanf" and "fopen". I can't use the command "sscanf(t, '%*s %d %d %d %d')" to get the corresponding number from string "z='158.dat 158 167 42 -955';", but this command works correctly in Matlab. The command "fid=fopen('E:\ABC\aaa.dat','r')" also return "fid=-1". Can anyone give me the answer to these problems? Is my command usage correct?

 

I am looking forward to any valuable comments and suggestion on this issue. Thanks a lot.

0 Kudos
Message 1 of 2
(2,491 Views)
Hello,

Currently LabVIEW MathScript cannot deploy to a PDA device.  Also note that LabVIEW MathScript does NOT need any third party software to execute.  In LabVIEW MathScript, you generally can execute scripts written in the MATLAB® language syntax.  However, the MathScript engine executes the scripts, and the MathScript engine does not support some functions that the MATLAB software supports.

The problem with sscanf seems to be a bug.  I have filed a bug report for this (id: 125477).  I'm not able to reproduce the problem with fopen.  Make sure the file you're trying to open exists.  What version of LabVIEW are you using?

MATLAB® is a registered trademark of The MathWorks, Inc.

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