LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Matlab code in labview for Binay coded file.

Solved!
Go to solution

 

Dear sir/madam,

 

 

I having a binary coded file, and Matlab code also, but i am not able to open that file , so I want to open and run that file according Matlab code. here is image what i want to do, and also attached here input file and matlab code.

Solution of matlab code.jpg

 

 

 

Download All
0 Kudos
Message 1 of 9
(8,449 Views)
Solution
Accepted by topic author Julian_prince

Hi,

 

Your script reads data from .dat file and formats it into 3D array. Unfortunately, MathScript currently can not handle 3D array.

 

By the way, you can use the following code to read the data in LabVIEW.

 

ReadBinary.png

0 Kudos
Message 2 of 9
(8,442 Views)

Dear sir,

 

     Thanks for your reply,, I have tried using the program suggested by you but not working,.

original.png 

 

Please suggest any other option, here i have attached input file. 

 

 

 

 

 

0 Kudos
Message 3 of 9
(8,423 Views)

@julian prince wrote:

I have tried using the program suggested by you but not working,.


You need to be more specific than "not working".

 

  • Is the program broken? (what does it say if you press the broken run arrow?)
  • Is the data incorrect after reading? (What do you get and what do you expect to get?)
  • Do you get any errors? (what are the error codes and error messages?)
  • ...
0 Kudos
Message 4 of 9
(8,418 Views)

I do not see any problem to read the data from new attached input file. The following figure shows the data in Waveform Graph.

 

Data.png

0 Kudos
Message 5 of 9
(8,412 Views)

Dear sir,

 

Thanks for reply,

 

Please send me the output file, which u got from the programme. I want to check wher is my mistake, and also programme whcih u have used,

 

Thanks and regards

Kunvar yadav

0 Kudos
Message 6 of 9
(8,409 Views)

Attached is the LabVIEW 2011 VI to read the file. The data read from the file is saved as default value.

 

 

0 Kudos
Message 7 of 9
(8,407 Views)

Dear Sir,

 

Thanks for sending Labview VI. But i have labview 2010 thatshows error please send the vi in Labview 2010.

0 Kudos
Message 8 of 9
(8,405 Views)

Here is the LabVIEW 2010 VI. I do not see any problems. Try it and let me know whether it works.

0 Kudos
Message 9 of 9
(8,400 Views)