LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Crash after updating matlab script node and image reading

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? 

 

0 Kudos
Message 1 of 5
(2,677 Views)

Help please.

0 Kudos
Message 2 of 5
(2,664 Views)

Up

0 Kudos
Message 3 of 5
(2,649 Views)

Help needed.

0 Kudos
Message 4 of 5
(2,639 Views)

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 🙂

Sam S
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5
(2,637 Views)