NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
SERDARSOYLU
Posts: 48
0 Kudos

Compile error when I deploy my MathScript with user-defined m files into a real time machine

Hi;

I have a  vi in my Labview Project with a MathScript in it. In this MathScript block, I am calling a user-defined m file. However, when I deploy this vi into my real time PXI machine, I am getting a message saying that there are some compiling errors without an error number.

In my application, I set my search paths properly. I also included my user-defined m files in the project and put them under the dependencies folder. I do have RT MathScript. Also, in my user-defined functions, there is no function that MathScript does not recognize. In fact there isn't any complex functions other than sin and cos..Given all these I am wondering if there is anyone out there who can help me figure out where the problem is.

Member
Patricia B
Posts: 149
0 Kudos

Re: Compile error when I deploy my MathScript with user-defined m files into a real time machine

Hello,

 

There are some MathScript Functions that are not supported on RT targets. Perhaps you are using some functions that fit into this category. Below are some links including the LabVIEW Help that list which functions are not supported.

 

Support for MathScript Functions in Real-Time Applications (MathScript RT Module)

http://zone.ni.com/reference/en-XX/help/371361G-01/lvtextmath/rt_cert_funcs/

 

Guidelines for Using LabVIEW MathScript in Real-Time Applications

http://digital.ni.com/public.nsf/allkb/203FDAF73DD06746862576D900674744?OpenDocument

 

Best,

Patricia B.

National Instruments
Applications Engineer
Member
SERDARSOYLU
Posts: 48
0 Kudos

Re: Compile error when I deploy my MathScript with user-defined m files into a real time machine

Hi

 

Thank you so much for the answer. I checked the functions and as it turned out all my functions are recognized by MathScript so there is nothing wrong there. To keep things real simple, I generated an example  m file that simply adds up two numbers. I ran the m file with Mathscript Window and it worked just fine. I set my search paths so that Mathscript knows where the m files is. I also included the file in my project so that it appears in my dependencies folder. I named the file properly; the function name is the same as the m file name with a small m extension. When I deployed this very simple file, again I received this message at the end of the deployment "addition.vi loaded with errors on the target and was closed. I don't get the same error when I don't call a user-defined functions so I am sure that the problem comes from the interaction between the user-defined m function and RT Mathscript.

 

Could yopu please help me what the problem could be. I have been reading all the help files and tried everything but none of them has been of help to me so far.

 

Kind Regards,

 

Serdar

Member
Patricia B
Posts: 149
0 Kudos

Re: Compile error when I deploy my MathScript with user-defined m files into a real time machine

Hello,

 

Would you mind posting your project with the target and the .m file you are using so I can take a look?  I fou could also send the build spec as well.

 

Thanks,

Patricia B.

National Instruments
Applications Engineer
Member
Patricia B
Posts: 149
0 Kudos

Re: Compile error when I deploy my MathScript with user-defined m files into a real time machine

Also, what versions of LVRT are you using?

 

 

National Instruments
Applications Engineer
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page