Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How is a binary file generated by labview parsed?

I am using a generated VI to continously read 2 channels from my DAQCard-1200 and write to a binary. I want to use the information in this file in another program and I am wondering how binary file that is generated is parsed? I have examined the file with a hex editor but I have been unable to determine which bits are channel idenitfiers and which are values. Any help on this topic would be great

Cheers
0 Kudos
Message 1 of 4
(2,928 Views)
Which VI did you use? Did you use one of the Express VIs? With most VIs you can open them up and see how the binary file was written.

-Brett
0 Kudos
Message 2 of 4
(2,921 Views)
Brett

The VI I used is Cont Acquire to Binary File vi. I got this vi by selecting the solution wizard / daq solution wizard / custom daq applications. Under custom daq applications I select analog input, selected my 2 input channels, Scan multiple samples from each channel continously, have my board control the timing internally and no triggering.

I have attached a file that this program has generated. I need to know how to determine what information corresponds to each channel in the file.
0 Kudos
Message 3 of 4
(2,913 Views)
Cont Acq to File (binary) can be opened up. You will see a subVI in there called SubVI_Create binary header. Open that and look at the diagram. To quote: "Header = Total header length (4 bytes) followed by channel list string length and string (constructed into one string from channel array), channel settings cluster returned by hardware config, actual scan rate returned by clock config (4 bytes) then user header string."
0 Kudos
Message 4 of 4
(2,904 Views)