07-09-2010 09:40 AM
Hi,
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
07-09-2010 09:42 AM
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.
07-09-2010 09:46 AM
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
07-12-2010 05:26 AM
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