09-22-2010 02:57 AM
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?
09-22-2010 03:02 AM
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
09-22-2010 05:47 AM
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)?
09-22-2010 05:53 AM
Hi,
can you read your file witha vi written in LV8.6?
Can you post your example of the read vi?
Mike
09-22-2010 09:43 AM
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.
09-22-2010 10:37 AM - edited 09-22-2010 10:38 AM
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?