LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving data from a MATLAB script node

I am creating a VI that imports and manipulates arrays of data points and then plots them in Labview. When I run my Matlab script in Matlab there are no errors and all the assigned variables exist in the form that they should exist but for some reason Labview cannot retrieve all of them (they just show up as zeros). There are no errors in the script as far as I can tell. Do you have any idea what could be going wrong?
0 Kudos
Message 1 of 2
(2,583 Views)
Hi,

You can use the MatLAB window opened by LabVIEW to debug your script.

Check the values of your variables in the MatLAB window and try to find out where the data goes wrong. I've experienced many problems with LabVIEW MatLAB nodes on different PCs, and many times legal MatLAB operations would go wrong in the script node. You will need to find out which line exactly does your MatLAB code not executing correctly and try to modify the MatLAB codes from there.

Hope this help,
Dan
0 Kudos
Message 2 of 2
(2,583 Views)