05-03-2013 02:35 AM
Hi,
Have anyoune experienced problems reading binary files in 2012 previously saved in 2010.
As shown on attached image, the same VI is opened in 2010 and 2012 reading the same binary file containing the data structure "ProcessList IN".
I suspect it has something to do with the variants ?
The error message does help a lot (-;
Any ideas ?
Kind regards
Kahr
05-09-2013 01:10 AM - edited 05-09-2013 01:11 AM
Hi Kahr,
Is it possible the error message is useful - that there's actually a path (input) problem? The path shown doesn't look complete - is there a drive-letter hidden somewhere on the left-end of the path? If some of the path is hidden, maybe you can resize the path control so the whole path is visible.
Cheers.
05-10-2013 03:02 AM
Hi
If I look at the error message the path does seem right.
How does it work if you add in the
Open/Create/Replace File and Close file function around your read binary file function?
The error message as your are getting indicates that there is something wrong with the path as 550nm mentions. The reason why the errror message contains multiple error messages is due to an old format of the error messages, so when we had to merge these there were multiple modules using the error code 1, and that is why you also see something with GPIB. We could have removed this but in that case it would have breaked the compatability when upgrading an older application.
Br, Anders
05-10-2013 03:28 AM - edited 05-10-2013 03:30 AM
Hi Kahr,
"error 1" tells one of the input parameters is wrong: it's either the path or the cluster datatype! The error message only mentions a file path AS AN EXAMPLE!
You're using BinaryRead similar to those old Datalog file functions to read a cluster of several data. It has been know that datalog files get tricky when one is using a different LabVIEW version to read them due to changes of internal data representation. Maybe that's the point that hits you now?
05-10-2013 03:50 AM
Presumably, these file are also generated in LabVIEW. Can you create a simple datafile using the two LabVIEW versions and do a binary comparison.
What kind of objects are in the array of clusters? Can you read it in the newer version if the file is also created in the newer version?
Can you attach a simple datafile and your VI?