LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary files

Hi,

I have a set of binary files (. bin .raw .dat) that contain samples of ECG signals togheter with other
information. I would like to read the samples and other fields of binary files. so
Can i selectively choose one or more fields od binary file?
I have attached a very small .dat file, instead .bin and .raw files are too big.
In my application i use much larger files.
Any suggestions on how to do it?
Sorry but I'm not very familiar with binary files.
Thanks in advance

 

I have a set of binary files (. bin .raw .dat) that contain samples of ECG signals togheter other information. I would like to read the samples and other fields of binary files. so Can i selectively choose one or more fields od binary file?
I can't attach a .dat .bin or .raw file because forum don't accept these file format.

 

Any suggestions on how to do it?

I haven't familiarity with binary files.

Thanks in advance

 

Wasabi

0 Kudos
Message 1 of 4
(2,712 Views)

The extensions are meaningless. You will have to know how the files were created in order to read them. There is no single 'binary' format.

0 Kudos
Message 2 of 4
(2,709 Views)

In order to read a binary file it is necessary to know the data format used when the data were written.

Once you know that, you can try to read it using the "Read binary file" VI provided with LabView.

 

 

Marco

0 Kudos
Message 3 of 4
(2,705 Views)

ok! I have a bit of code that explains the file format.
it is something like this:

 

#define NUM_CH_IN_SAMPLE 8
struct ChSample
{
 long _sample_data[NUM_CH_IN_SAMPLE];  /* 500 Hz, 2.5 uV/LSB        */
 DWORD _status;

 ChSample() : _status(0) {};

};

 

so I would like to read items of structure.

 

Any suggestions?
Thanks

0 Kudos
Message 4 of 4
(2,672 Views)