In article <823irg$inb$1@nnrp1.deja.com>,
tomirvine@aol.com wrote:
> I have written some C programs for signal processing. I need to adapt
> these programs to accept binary data acquired by a colleague using
> Labview.
>
> The colleague mentions that the data is a 2-D array with a time column
> and an amplitude column. Furthermore, the the data is stored in
64-bit
> IEEE double precision format.
>
> Can anyone tell me how to read this data format into a C program?
>
> Thank you.
>
you could read your data and convert them into the standard 2D array.
The 2D array can be as a input of your CIN.
Of course you need to know the saving format of your partener's file.
Then, if I were you, I would just simply use the I/O function in Labview
--open, read, close..plu
s a while loop to index your read data to a 2D
array... the loop will end by the EOF. Note that you need to "read"
your data is dbl-precision by specifying the "data stream type"
parameter as double-precision data. (Simply right-click the "data stream
type" input and click the "creat constant" in the pop-up menu).
It's simple and neat. I've done several this kind of work..even some
with complex data structure.
Luck,
-
G. Chen
Ph.D. Candidate
Ohio Univeristy, Athens, OH
Nothing can dim the light which shines from within.
--
Sent via Deja.com http://www.deja.com/
Before you buy.