I am now using Labview to to data acquisition and would like to use the MATLAB
script node function to do the image processing work.
I have some problems getting MATLAB script to function properly. The problem is:
Whenever I tried to execute the program, Labview gave me the following error:
"Error 1046: Labview can not initialise the script server, Ensure server software is installed."
However, the MATLAB is installed in the PC. I think the reason of
this error is that I am using an university campus based PC. The MATLAB I have got in this PC is a network versioned. (i.e. it is
installed on the network server, but not in the local harddrive.)
Is there anything I can do to get around with this error?
Solved! Go to Solution.
Could I ask what version of LabVIEW you are using?
Are any MATLAB files stored on the local hard drive or are they all on the server?
I am using LabView 2009.
I think all the files are on the server, as I go to C:\Program Files\MATLAB\R2009b folder, there is only a 'MATLAB R2009b.link.o' file available.
Unfortunately, there is not any way to get MATLAB Script Nodes to work in LabVIEW under your current network configuration. In order for the MATLAB Script Node to work properly, it requires that MATLAB is installed on the same machine as LabVIEW. This means that you will need to either install MATLAB on the local machine on which you are using LabVIEW or that you will need to install and run LabVIEW from the same server machine on which MATLAB is installed. Depending on MATLAB's functionality, you may be able to do some kind of minimal install on the local machine that adds MATLAB to your registry and program file list, but that just forwards you to the copy of MATLAB on the network. However, I am not aware if this is even an option or how you might go about implementing this scheme, so if you're interested, I would contact MATLAB to find out more about that.
I wanted to use Matlab script node to do image processing my self. Here is the detailed description of my problem:
Labview takes a video and creates a .avi file. Then I use Matlab program to convert this .avi file to .bmp image files (each frame corresponds to and image file). What I would like to do is, have a Matlab script node in Labview vi such that as soon as the video is taken, it is broken into image files using the Matlab code. I think this should be easy but I do not know how to work it. Please help!
Could you clarify your question some more?
It sounds like you have something that currently works but you wish to condense it to run in one VI instead of running LabVIEW and then The MathWorks, Inc. MATLAB® software. If that is indeed the case then based on your picture it looks like you simply need to connect an error wire from the end of your code after the while loop to the error in terminal on your MATLAB script node. This would effectively serialize your script to run after you finished creating the .avi file.
Or do you perhaps mean that as each frame is captured you wish to convert to .bmp image files instead of waiting until the entire video is converted to an .avi?
For future reference you may wish to create a new thread since your issue isn't really related to the topic of this thread. Additionally, this is the MathScript forum so your question may be better suited for the main LabVIEW forum.
MATLAB® is a registered trademark of The MathWorks, Inc.
Puedes ayudarme por favor, tengo labview instalado en el disco C y mathlab en el G y tengo problemas para trabajar con el mathscript hay alguna solucion por favor