LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I can't execute matlab script with LV7 under Win2000

I use LabVIEW 7 Express and Matlab R13 under Win2000Pro. When I use matalb script, both LabVIEW and Matlab hang on at the same time. After killing matlab thread through TaskManager, I can execute vi with matlab script. But the result is not as expected and there comes error code "1050". Even examples with LV7 have the same problem. However, erverything is okay under winxp. I have checked NI's knowledge base and uninstalled Matlab WebServer.
0 Kudos
Message 1 of 12
(3,736 Views)
Zenith,

Many others are having serious problems with with Matlab and LabVIEW 7 under win2k. You should call NI tech support and open a service request.

Good luck,

-Jim
0 Kudos
Message 2 of 12
(3,736 Views)
Thank you for your reply.
At least I know I am not lonely on this issue!
0 Kudos
Message 3 of 12
(3,737 Views)
I have an open support question on this with Austin Texas. Basically there is a real problem with their integration of typelibraries - I have come up with a fix though.
Install early versions of Matlab from 5.3 -> R13 and at some point it starts working. I tried 5-.3->R13 and was unable to determine where exactly - so went backwards and still coult not find it.
Similarly there may also be a problem with the way they do communication (SECURITY_DESCRIPTOR = not NULL) and you may need to use the DCOMCNFG.exe program to explicitly set your username with permission to do everything. Email me if there are problems.
Marc
0 Kudos
Message 4 of 12
(3,737 Views)
Jim,

I agree and we have not been able to solve it as of yet because we have not been able to reproduce the issue. We have tried Winddows 98, 2000, and XP with MATLAB 6.0, 6.1, and 6.5, but no luck. We are looking fo ra common thread between all of the customers, but have been unable to get enough information to make a case yet.

I see that this user is having the issue on a Windows 2000 box, but not on a Windows XP box. What is different about the two boxes? Please compare all of the software and all of the hardware. What is different between the two machines? This may lead us down to the real issue. Thank you.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 5 of 12
(3,737 Views)
PXI-8176 is the Win2000 box. Win2000 is preinstalled by NI and I've upgraded it to service pack4. The other Win2000box is IBM-X21 with traditional chinese language interface. Both of them encounter the same problem - LV7PDS hangs on while setup Matlab script.
Even the matlab-fractal demo vi can't be executed.
0 Kudos
Message 6 of 12
(3,737 Views)
Hi Randy;

I have the request through Kristi; she has details of all my configs. But basically the issue was found when we installed CLEAN matlab 6.5 (ie no other matlab ever installed). No version of Labview communicated when VB VC++, Matlab etc could. This was found on Win 2000 Professional service pack 3 & 4; Labview 6.i -> Labview 7 Express. We also found exactly the same problem with Win XP (updated three days ago).

I sent an email to Kristi earlier : There was an undocumented bug (found on MSDN) which indicated that user priviledges for non anonymous COM calling were incorrectly set: one common thing I also had to do was use DCOMCNFG.exe to explicitly allow our user (Member of Administrator group) launch and run access to the matlab type l
ibraries. However the huge changes which have occured in the registry leave a horrible murky trail.
I hope this helps - and contact me by email if you want to phone and chat.
Marc

0 Kudos
Message 7 of 12
(3,737 Views)
To Randy, Marc and NI Team:
Thank you so much for your effort on this issue.
Here comes the great news!
With the newer version of matscript.dll(v7.0.0.2), I can drop a matlab script successfully either under win2k or winxp. Besides, matlab command window won't close up after the script node is formed. I believe NI will release this file soon!
0 Kudos
Message 8 of 12
(3,737 Views)
All,

Attached to this post is a beta version of a fix to this issue. We say that it is a beta fix because we still have not been able to characterize this issue here at National Instruments (we have not been able to reproduce it to investigate further). This DLL has worked for a few customers (we have had no negatives yet). Please try it if you are having this issue and please post your results so that we know it is helping more LabVIEW & MATLAB users. The installation instructions follow:

Please move the old version of the dll to a safe location for future use.

To Use:
1. Quit LabVIEW and MATLAB.
2. Open the directory: C:\Program Files\National Instruments\LabVIEW 7.0\resource\.
3. Move the old version of the matscript dll (version 7.
0.0.1) to a safe location (in case you need it later).
4. Insert the new dll (attached below) into the resource directory.
5. Launch LabVIEW 7.
6. Drop a Matlab Script node and see if LabVIEW 7 hangs.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
Message 9 of 12
(3,737 Views)
That fixed it for me. However I did have to add the .dll extention to the file downloaded using the above hyperlink.
0 Kudos
Message 10 of 12
(3,737 Views)