LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have written a binary file with a specific header format in LABVIEW 8.6 and tried to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

I have written a binary file with a specific header format in LABVIEW 8.6 and tried  to Read the same Data File, Using LABVIEW 7.1.Here i Found some difficulty.Is there any way to Read the Data File(of LABVIEW 8.6), Using LABVIEW 7.1?

 

    

0 Kudos
Message 1 of 6
(3,255 Views)

Hi satishkumar v,

if you know the format, then it should be no problem. Where do you have problems reading it with LV7.1?

 

Mike

0 Kudos
Message 2 of 6
(3,252 Views)

Hi,

    Thanks for giving me the reply.I know the header format of the data file .When i am specifying the same format to the Read File function palette in LV 7.1,it was not accepting that format.Also when i try to read the contents of the file, the data i get is a combination of special characters and the numbers.I am finding difficulty in case of where to give the offset for getting the exact data..Also can u explain me to how to type cast the data(i mean "Convert 4.x data" option in the Type Cast Pallette)?

0 Kudos
Message 3 of 6
(3,237 Views)

Hi,

can you read your file witha vi written in LV8.6?

 

Can you post your example of the read vi?

Mike

0 Kudos
Message 4 of 6
(3,231 Views)

In addition to the VI using to read the file you should also post the VI that writes the file (the one in 8.6), as well as an example data file.

 

P.S. In the future, please do not stuff your entire question in the title of the thread. Keep the title brief, but descriptive. Use the body of the message to give the details. Thanks.

0 Kudos
Message 5 of 6
(3,214 Views)

I can think of two possible stumbling blocks:

 

What are your 8.6 options for "byte order" and "prepend array or string size"?

 

Overall, many file IO functions have changed with LabVIEW 8.0, so there might not be an exact 1:1 code conversion. You might need to make some modifications. For example, in 7.1, you should use "write file", the "binary file VIs" are special purpose (I16 or SGL). What is your data type?

0 Kudos
Message 6 of 6
(3,206 Views)