From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-09-2005 11:49 AM
12-12-2005 04:11 AM
12-13-2005 03:33 AM
Hi,
I think it was a bug of LabVIEW 8, i send an email to the LabVIEW group in the R&D, and let you know if we have solution.
Thanks,
Christophe S.
Account Manager East of France І Certified LabVIEW Associate Developer І National Instruments France
03-05-2009 04:42 PM
I'm using LV8.6 and need to read a .bin file created in MATLAB. This file obviously does not contain the 4 byte header that LabVIEW prepends .bin files with. So when I use Read from Binary File, I get no data (I'm trying to read an array of doubles). I've tried making my .bin file both in native and big-endian format and changing the representation (double, int64, float64) but none of this works. I noted that if I create the same array in a .bin file in LabVIEW and wire a FALSE to the "prepend array or string size?", my VI for reading .bin files can't read this file either.
Any work-arounds here?
(I'll try attaching my write & read VI's)
03-05-2009 04:56 PM - edited 03-05-2009 04:57 PM
You've posted to an old and unrelated thread. You should try to post new questions.
In any case, it would be nice if you had posted an example of a bin file but if your file has no header information that identifies the array size, you should try setting the data type in the read to a DBL scalar and not an DBL array. If you set the count to -1, the function will return an array. That is how you read the file created by your WriteBinFile.
03-05-2009 05:03 PM
Interestingly, I found that the example VI, Read Binary File, does fine reading a 1D array created my MATLAB because it includes the Get File Size function that writes the size to the count terminal. I still can't get this to work if I'm trying to read a 2D array, though.
suggestions?