NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Julian_prince
Posts: 65
0 Kudos
Accepted Solution

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

 

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

 

 

 

Active Participant
ttrr
Posts: 225
0 Kudos

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

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

Member
Julian_prince
Posts: 65
0 Kudos

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

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. 

 

 

 

 

 

Knight of NI
altenbach
Posts: 22,881
0 Kudos

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


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?)
  • ...

LabVIEW Champion . Oh, by the way, I work for peanutsKudos .

Active Participant
ttrr
Posts: 225
0 Kudos

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

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

Member
Julian_prince
Posts: 65
0 Kudos

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

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

Active Participant
ttrr
Posts: 225
0 Kudos

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

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

 

 

Member
Julian_prince
Posts: 65
0 Kudos

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

Dear Sir,

 

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

Active Participant
ttrr
Posts: 225
0 Kudos

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

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

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page