11-28-2007 11:40 AM
11-28-2007 04:17 PM
So, in the absence of responses, I'll add a few more details. I found a post in the archive that had the identical problem that I'm having:
http://forums.ni.com/ni/board/message?board.id=250&message.id=4389&query.id=13679#M4389
Unfortunately, nobody had any suggestions ![]()
11-30-2007 02:57 PM
I figured out what was wrong. It wasn't a big-endian-little-endian problem. It wasn't a I16 vs. I32 read problem. The Cont Acq&Graph Voltage-To File(Binary).vi was the problem. Just after the DAQ.mx read, and after displaying the samples read, somebody decided to "transpose the unscaled array of data and append it to the file." - Step 7. This transposition garbled the bejeezus out of the binary. I read the raw, garbled binary into another program, Igor, and was completely unable to get it to look right... so the "Graph Acquired Binary Data.vi" was not the likely problem, the binary write routine was. Getting rid of the Transpose 2D array widget solved my problem, now I can store a waveform, read it from the drive, and display it. Question is - why is the transposition there in the first place? I think it's a mistake. Other examples, like the TDMS ones don't transpose...
-gerald
12-04-2007
05:27 PM
- last edited on
10-31-2025
09:17 AM
by
Content Cleaner
Hi Gerald,
This was reported to R&D (4DP855N3) for further investigation. This behavior is described in LabVIEW 8.5 Known Issues.
I don't know why this line is blue, but I've tried to change it several times. Here is the link to LabVIEW 8.5 Known Issues.
Possible workarounds include:
1. If you do any array operations such as index array or transpose array, before writing the new array to the write binary file primitive, insert an Always Copy primitive on the wire. A copy will be made, but it will write the correct values to the file.
2. You can use Flatten to String function to flatten data into a string before writing to file.
Thanks for the feedback!
Message Edited by Mark E on 12-04-2007 05:31 PM
Message Edited by Mark E on 12-04-2007 05:31 PM