LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with Matlab-LabVIEW interface

We work with LabVIEW 6.0.2, and Matlab 6.0 or 6.1.
We have often a problem when a matlab script is executed because not all of the variables are well
provided by LabVIEW to Matlab. Because Most of variables are empty, the matlab script can't run.
Even if we have the last dll "matscript.dll" which patches an other problem with Matlab 6.1, we can't be sure that are VI will well execute.
We've got in contact with the french Support, but they are not able to explain us.
Is there someone who have more information about it ?
0 Kudos
Message 1 of 4
(2,657 Views)
To things to try:
1. Leave Matlab open once it has been launched by LabVIEW, i.e., don't close Matlab between consecutive runs of the same VI.
2. Wire an error cluster to the 'error out' of the Matlab Script node.

If these suggestions don't help you can attach a small example that reliably demonstrates the problem and somebody here might have some insight.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 2 of 4
(2,657 Views)
We have already made this. It seems to come from the DLL that don't check if all the variables transmitted to the matlab script have the same size in matlab as in LabVIEW.
Do you know how to contact someone in National Instruments who will be able to explain how works this DLL ?
0 Kudos
Message 3 of 4
(2,657 Views)
I did all that has been mentioned. I left the matlab window open and also wired an error output. But it does not show me any error instead it jst gives me a DING sound and stops.

I have attached a simple code which shows the problem. I need an urgent solution please if u can show some solution.

boogdee
0 Kudos
Message 4 of 4
(2,657 Views)