I was wondering if anyone knew how to run an m script from LabView. I know how to run functions, which is through eval in the Matlab script box, but cant seem to get the m script to launch with variables input into the box.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re still going to use the Mathscript Node.
I don’t have LabVIEW in front of me, but it seems it’s as simple as naming the input exactly the same as the variables in your script. See
Aandnin the example in the above link. The same goes for outputs.EDIT: Here is a great tutorial provided by Phil Brooks in the comments: Working with .m File Scripts in NI LabVIEW for Text Based Signal Processing, Analysis, and Math