Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

SCAN_to_Disk file format

I have a question about the Traditional NI-DAQ function of SCAN_to_Disk.

A co-worker developed a Visual Basic.NET program using the SCAN_to_Disk function to read two analog channels of a PCI-MIO-16E-1 NI card and store the data to the hard drive.

I have been tasked with taking the the files he creates and reading them into an existing C++ program I have written for analysis.

I need to know what the file format for this function is.

1.) Does it create a header, if so what is the format and length of the header.

2.) The help file states that the data is stored in a 16 bit binary format with the lower bits first (little endian). Is this correct? Is there and additional information imbedded in the file?

I have written a procedure
to read the file, however the data comes back as all zeros. (I do not seem to have any problems reading binary files created by other programs.)

If someone could point me to a explaination of the file format used by National Instrument for data storage I would be Thankful.

Thanks in advance

Chuck
0 Kudos
Message 1 of 2
(3,018 Views)
No. The binary file written from the scan_to_disk function does not include a header. It should be just he 16 bit (little endian) data.

I would suggest using one of the labview VI's that read from a binary file (they should also have a C conterpart).
0 Kudos
Message 2 of 2
(3,016 Views)