DSPRelated.com
Forums

Can CCS 3.1 read data from excel file ?

Started by daya...@yahoo.com March 19, 2008
Hi,

I want to read data from an excel file using C program in CCS 3.1, can it support that ? Thanks.

REgards,
Dayah
Dayah-

> I want to read data from an excel file using C program in CCS 3.1,
> can it support that ? Thanks.

Yes but you have to do some work. You can use standard file I/O to access the file,
then you have to parse the Excel file format to extract your data. Suggest to put
any file I/O code into main() function, before real-time code runs (i.e.
initialization only).

-Jeff
Dayah-
> Can you give me some exmples from any sources or documents about how to read this
> excel file ? Thanks.

How to read Excel files is not a DSP-specific question... but anyway here is some
info on Excel file format:

http://sc.openoffice.org/excelfileformat.pdf

-Jeff
> Jeff Brower wrote:
>
> Dayah-
>
> > I want to read data from an excel file using C program in CCS 3.1,
> > can it support that ? Thanks.
>
> Yes but you have to do some work. You can use standard file I/O to access
> the file,
> then you have to parse the Excel file format to extract your data.
> Suggest to put
> any file I/O code into main() function, before real-time code runs (i.e.
> initialization only).
>
> -Jeff
>
Hi,

Can you give me some exmples from any sources or documents about how to read this excel file ? Thanks.

Regards,
Dayah

Jeff Brower wrote:
Dayah-

> I want to read data from an excel file using C program in CCS 3.1,
> can it support that ? Thanks.

Yes but you have to do some work. You can use standard file I/O to access the file,
then you have to parse the Excel file format to extract your data. Suggest to put
any file I/O code into main() function, before real-time code runs (i.e.
initialization only).

-Jeff