LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I read a binary file stream with many data type, as with AcqKnowledge physio binary data file?

I would like to read in and write physiological data which was saved by Biopac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).

I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/app156FileFormat/FileFormat.h
tm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/app155macffmt/macff.htm) .

I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, because it is for PC I am assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.

I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to illustrate it.

Many thanks in advance for your help.

Donat-Pierre
0 Kudos
Message 1 of 4
(2,829 Views)
One more step...

short are U16 integer
double are double precision float
bool seem to be 2 bytes (= U16)
char are string (variable length)
rgb are U16 integer, with high order byte = 0
rect should be 4 x U16 (top, left, bottom, right)
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 4
(2,829 Views)
This question has been addressed here:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000F6FF0000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
0 Kudos
Message 3 of 4
(2,829 Views)
Thanks Tyler. You are right, it seems that this posting has not been removed from the Forum. The one you pinted out is teh active one. Interstingly I was not notified of Charly and your reply. I pointed back to my opwn, supposedly deleted posting indirectly.

Bizar,..., strange that is

Donat
0 Kudos
Message 4 of 4
(2,829 Views)