06-22-2011 10:17 AM - edited 06-22-2011 10:21 AM
I'm new to LabView and I'm trying to incorporate Matlab code into a LabView program. To start, I'm simply plotting a sine wave and displaying the output on a LabView waveform graph. Everything runs OK until I update the code in the Matlab script node (for instance, if I change sin(x) to sin(3*x) or even if I add a space somewhere in the code, which should not affect it at all). After I update the code and try running it, LabView crashes and presents me with the following error message:
Fatal Internal Error: "fpsane.cpp', line 442
LabVIEW version 10.0.1
You will lose any unsaved work. For assistance in resolving this problem, please relaunch LabVIEW, or contact National Instruments.
This error seems to be attributed to a computer issue as performing the same procedure on another computer with LabView installed does not trigger it. What's going on?
Additionally, if I try to read an image with the Matlab node using the imread command, I receive a message saying the image doesn't exist. It is saved in the Matlab directory I typically use and Matlab recognizes it; in which directory should it be saved? Should I just try to upload it via LabView?
06-22-2011 12:01 PM
Help please.
06-22-2011 07:00 PM
Up
06-23-2011 10:17 AM
Help needed.
06-23-2011 10:48 AM
PatLlull,
You can try to import the MATLAB® file in LabVIEW from Tools>Options>MathScript and then turn on Script Highlighting (see attached) You may also want to look at these articles on using the node:
http://zone.ni.com/devzone/cda/tut/p/id/3256
http://digital.ni.com/public.nsf/allkb/2ADFD8169017977986257103006CFCC0?OpenDocument
I hope this helps 🙂