LabVIEW 7.1无法调用MATLAB7.0.4有解决办法了没?
现在有解决办法了没?
Use LabVIEW 7.1.1
http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument
Problem: I have experienced a problem when using the MATLAB or Xmath Script Nodes in LabVIEW. For example, in LabVIEW 7.0, sometimes the MATLAB Script Node hangs LabVIEW when dropping it on the block diagram or open a VI containing one using Windows 2000 and MATLAB 6.1 or 6.5. Also, the MATLAB Script Node sometimes returns error 1047 when used with MATLAB 7.0 (R14). The Xmath Script Node may return error 1046 as well. What can I do to resolve these behaviors?
Solution:
Note: The issues described in this document are resolved in the LabVIEW 7.1.1 Maintenance Release. If you are experiencing problems with MATLAB and are using LabVIEW 7.0 or earlier, refer to the information below.
First, please ensure that MATLAB 5.0 or later, or MATRIXx 7.1 or later is properly installed on your computer. This is required for the respective script node to function. If these are installed and you are still experiencing these problems, try running both shipping examples for the respective script node. Note that the LabVIEW folder will, by default, include a version number and install in C:\Program Files\National Instruments.
MATLAB Script Node:
LabVIEW\examples\scriptnode\Differential Equation.llb\MATLAB Script - Lorenz Diff Eq.vi
LabVIEW\examples\scriptnode\Fractal.llb\MATLAB Script - Fractal.vi
Xmath Script Node:
LabVIEW\examples\scriptnode\Differential Equation.llb\Xmath Script - Lorenz Diff Eq.vi
LabVIEW\examples\scriptnode\Fractal.llb\Xmath Script - Fractal.vi
If both examples for the script node open and run without error, you do not need the files below. If you have MATLAB or MATRIXx installed and either of the examples for the respective script node returns an error when executed, you may need the corresponding patch file below to resolve this issue.
Complete the following steps to update the DLL.
Quit LabVIEW and MATLAB / Xmath.
Navigate to LabVIEW\resource\script.
Move the old version of the matscript.dll (MATLAB), or xmathscript.dll and XmathTypes.dll (Xmath), to a backup location in case you need them for future use.
Note: If you leave the old DLL in this directory, even if you change its extension, you might experience erratic behavior.
Save and unzip the appropriate file below into the LabVIEW\resource\script directory.
Open LabVIEW.
Open and run the examples listed above. The problem should be resolved.
If using the MATLAB or Xmath Script Nodes in built applications you will need to also replace the appropriate DLLs located in the National Instruments\Shared\LabVIEW Run-Time\VERSION\script directory.
Refer to the NI Developer Zone forum topics and other KnowledgeBase entries linked below for more information.