LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need code or example for reading LabView data file with C/FORTRAN/IDL.

Labview used for data acquisition bur post processing on UNIX. Need code or example for reading LabView data file with C/FORTRAN/IDL. Thanks
0 Kudos
Message 1 of 5
(3,274 Views)
Labview can write files in a variety of data formats -- even ASCII.
Have Labview write a file in whatever format you usually work with in
C/FORTRAN/IDL

momolxg wrote in message news:<506500000008000000DD5E0000-1031838699000@exchange.ni.com>...
> Labview used for data acquisition bur post processing on UNIX. Need
> code or example for reading LabView data file with C/FORTRAN/IDL.
> Thanks
0 Kudos
Message 2 of 5
(3,274 Views)
The best way to do this would be to write a binary file in LabVIEW and then read it in your C or Fortran code. This Knowledge Base from NI's website discusses this process and even provides some example programs to show you how to do it. Hope this helps. Best of luck.
J.R. Allen
0 Kudos
Message 3 of 5
(3,274 Views)
Thanks, we are writing and reading binary files now but first had to overcome the subtlety that LabView writes a carriage return every 512 bytes. Still trying to find out if it is possible to writ binary to file without carriage return.
0 Kudos
Message 4 of 5
(3,274 Views)
We need to to write in compact form and are reading and writing in binary. Unforeseen were the carriage returns every 512 bytes. Have to read the data first and throw these away before the data can be read successfully.
Thanks
0 Kudos
Message 5 of 5
(3,274 Views)