LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed Importing a string from labview into matlab for file opening

Hello,

I am using labview to allow the user to pick the file to open via the
open labview measurement file block. Then I take the filename and
convert it from a path to a string and try to import it into my matlab
script which I use dlmread() to open my data file. However the
datafile does not open. I was wondering if anyone would help me with
this method?

Thank you,

0 Kudos
Message 1 of 2
(2,086 Views)

Hi Nicole,

Are you using the Matlab Script Node or the MathScript Node?  I know that dlmread is not currently implement with MathScript (although R&D is looking at implementing further features for future versions of LabVIEW).  Also, I'm not sure which VI you are using to get the file path because there isn't an "Open LabVIEW Measurement File" VI.  There are Read & Write LVM and a simple Open\Create\Replace File VI--are you using one of these?  If you are using the Open File VI, Matlab may be unable to read from the file because it is already locked for editing by LabVIEW. 

I hope this helps!
Megan B.
National  Instruments

0 Kudos
Message 2 of 2
(2,068 Views)