LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW and MATLAB

That was easier than I thought - I found an old email I sent to my lecturer who was having the same problem - hope it helps!

 
"I found a solution to the Matlab Script problem - I have run the fix on the rig computer which now runs fine.

If you want to update yours then follow the instructions on

By copying the new matscript.dll file you download from the site above into

C:\Program Files\National Instruments\LabVIEW 7.1\resource\script

it applies a patch which fixes the problem."

0 Kudos
Message 11 of 14
(800 Views)

Thank you all for the replies

Now suddenly its working, so it leads me to this question : Do I need to open MATLAB before I run the vi ???

is there any particular order I need to do ???

Thanks

Lavi

0 Kudos
Message 12 of 14
(796 Views)
No, you do not need to have Matlab running first. I ran your VI on a machine that had LabVIEW 8.2 and Matlab 7.0.4 (might have been 7.0.5, not sure) and got no errors, once I removed the "clear all" command. I don't know what R2006a maps to in terms of a version number. You never provided what error you received, and that's probably because you never wired an error out cluster to the script node's error out cluster.

Ian: that document only applies to LabVIEW 7.1. The poster is running LabVIEW 8.0, as indicated in an earlier message.
0 Kudos
Message 13 of 14
(782 Views)

Additional Information: If you try your code in LabVIEW 8.2 and use the Mathscript Node (just drop a Mathscript Node and copy your m-script there), it think it will give the same result as MATLAB. Mathscript converts a m-script file into LabVIEW code and executes it in LabVIEW. If you will create an EXE in the end, that would simplify a lot of your application. I don't know if you have other functions that is not in this thread, but it is worth a try.

I thought you'd like to know about that...

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 14 of 14
(774 Views)