Hello,
Why are you unable to use the Gaussian White Noise VI in LabVIEW 6.1? It is under the Analyze >> Signal Processing >> Signal Generation palette. I have attached a simple VI that illustrates creating a matrix.
If you wish to use the MATLAB® script node, let's first make sure it is working correctly. Try opening one of the LabVIEW shipping examples. Browse to <LabVIEW>\examples\scriptnode and open "HiQMATLAB_Fractal.llb." Then open "MATLAB Fractal.vi." Run the VI. Do you get any error windows that pop up? If not and you see a picture of a fractal appear, then the connection to the MATLAB software is working correctly. In your VI, try creating an error out indicator from the MATLAB script node and see if any errors appear.
If you do see an error in the shipping example, it means there is a problem with the software connection. Make sure that you have launched the MATLAB software at least once after you installed it. This will set up the necessary connection information. Then launch LabVIEW. If this isn't the issue, we could try manually restoring the server commands. Make sure LabVIEW and the MATLAB software are not running. Go to a command prompt, browse to the MATLAB bin directory (e.g. MATLAB\R2006b\bin), and type
matlab -regserverQuit the instance of the MATLAB software that appears and launch LabVIEW. If this also fails, please post again with any error information you receive.
Also, the
rand function in your script will not generate a Gaussian distribution. You will need to use the
randn function instead.
MATLAB® is a registered trademark of The MathWorks, Inc.
Grant M.
Staff Software Engineer | LabVIEW Math & Signal Processing | National Instruments
Edit: For some reason, I am unable to attach the VI. I have included a picture instead.Message Edited by GrantM on
08-08-2008 02:50 PM