ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

load text file from mathscripts

I have a data file called 'calibration.dat' in my user directory.  I can see the file by using dir or type 'calibration.dat'.  But I cannot read it into a matrix by following Matlab command such as load calibration.dat. I also tried to use load 'calibration.dat', it did not work either.   Please help.  Thanks in advance.
0 Kudos
Message 1 of 2
(6,417 Views)

Hi,

 

Have you correctly set MathScript work path? Moreover, you should use the following syntax to load from the file

 

a = load('calibration.dat');

 

 

0 Kudos
Message 2 of 2
(6,415 Views)