LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading matlab .m file

Hi,

I think the problem was you were type casting to U16 instead of U32.  The Bytes consist of 8 bits and when you read four off into an array you get 32 bits.

Find the attached vi which i used to debug what was going on.  The Vi basically reads a line from the file (2x4 Bytes = 2* 32 bit words) which i scroll up and down the file table using the index which i have modified to a step size of 8 (8 Bytes)

Hope this helps.

Craig

LabVIEW 2012
0 Kudos
Message 11 of 15
(1,493 Views)

Any Luck with this?  I take it you got it working OK

Craig

LabVIEW 2012
Message 12 of 15
(1,462 Views)

Yes, I got it.

Thanks for the help and sorry for the late answer.

crimolvic

0 Kudos
Message 13 of 15
(1,386 Views)

i have some bearing data files in matlab (.m format). i want to read these files for analysis in labveiw.

Can any one help me how i can read these file????

 

Regards

0 Kudos
Message 14 of 15
(950 Views)

@arsi986 wrote:

i have some bearing data files in matlab (.m format). i want to read these files for analysis in labveiw.

Can any one help me how i can read these file????

 

Regards


Please do a search. This question has come up many times, and many suggestions have been provided. For example, http://zone.ni.com/devzone/cda/epd/p/id/4178

0 Kudos
Message 15 of 15
(945 Views)