LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ data types to binary file

Hello,
I have just started using Labview 8 and have run into a problem I can't solve or
resolve using Labview HELP.
I have NI USB Carrier acquiring 3 channels of volatge signals and it is charting
this correctly. See attached Signal_Monitor_Write_Binary.vi file. Now I wish to save
the acquired data to a binary file which at some point I would like to read back and
re-chart. Trouble is the attached vi works fine but in order to read the binary file
I need to know the format the data was saved as.
The DAQ is configuring to acquire data on 3 channels how is this stored in a binary
file?
Any guidance would be greatly appreciated.

Best regards
Javed
0 Kudos
Message 1 of 6
(3,263 Views)
Hi Javed,

Knowing the format of the saved binary data is key to being able to read it back. If you don't know this then it is pretty hit & miss. I'd recommend going to Help>>Find Examples and searching for binary. This should point you towards two examples named write binary file.vi and read binary file.vi

In the reader you will see that the datatype has to be specified before the data can be interpreted correctly. I'd recommend following this approach. For some reason I'm having trouble opening your code so can't see what you have tried.

Let me know if I can help you further.

Thanks,

Stuart
0 Kudos
Message 2 of 6
(3,237 Views)
Please find examples attached that show how to write a 2D array to binary file and then read it back.

Hope this helps!

Stuart

P.S Feel free to rate the answer 😉
0 Kudos
Message 3 of 6
(3,225 Views)
0 Kudos
Message 4 of 6
(3,224 Views)
Message 5 of 6
(3,223 Views)

Thanks for this, in the end I have started making progress using the Read/Write Datalog File NI examples, more of this in a related thread

reading/writing mutiple charts from binary file

 

Many thanks

Javed

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