Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Sponsor

NEW! TMS320C6474: 3x the performance. 1/3 the cost. Three 1 GHz cores on 1 chip.

Discussion Groups

Discussion Groups | TMS320C6x | reading data from a .dat file

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

reading data from a .dat file - joshy jose - Jan 29 10:59:10 2007



hai firends,
 i am doing a spectrum analysis project in c6713b and i wish to take
data from a dat file
i tried like this
dat: .include"realdat.dat"

and it is not working
any other command like this available ?

can i do like this in c program for processor?
-- 
 regards,
                  Joshy m. Jose
                   kerala , India
                   91-9447976001



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: reading data from a .dat file - ampa...@yahoo.gr - Jan 30 7:22:48 2007

Try fopen("realdat.dat","r")  C command...

Harris

hai firends,
> i am doing a spectrum analysis project in c6713b and i wish to take
>data from a dat file
>i tried like this
>dat: .include"realdat.dat"
>
>and it is not working
>any other command like this available ?
>
>can i do like this in c program for processor?
>-- 
> regards,
>                  Joshy m. Jose
>                   kerala , India
>                   91-9447976001



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: Re: reading data from a .dat file - Markos Nikolaos - Jan 30 8:15:25 2007

Harris, 

This a part of some code I used to open (create) a new empty *.h file, read short FIR
coefficients , rescale them and then
save the new results in the h file:

f1 = fopen ("coefficients.h", "w");
 fprintf (f1, "short coef[32] = { \n");

 for (j=0;j<4;j++){
  fprintf (f1, "%d, %d, %d, %d, %d, %d, %d, %d, \n", coef[8*j]*32767/8752,\
  coef[8*j+1]*32767/8752,\
  coef[8*j+2]*32767/8752,\
  coef[8*j+3]*32767/8752,\
  coef[8*j+4]*32767/8752,\
  coef[8*j+5]*32767/8752,\
  coef[8*j+6]*32767/8752,\
  coef[8*j+7]*32767/8752);
 };

 fprintf (f1, "}; \n"); 
 fclose (f1);

All you have to do is change .h to .dat and it should work, Ive tried it myself.
I suspect you dont have the required libraries included. Try rts6713, stdio.h and ..that should
be it.
Let us know i if it worked ;)

Nicolas

  ----- Original Message ----- 
  From: a...@yahoo.gr 
  To: c...@yahoogroups.com 
  Sent: Tuesday, January 30, 2007 1:26 AM
  Subject: [c6x] Re: reading data from a .dat file
  Try fopen("realdat.dat","r") C command...

  Harris

  hai firends,
  > i am doing a spectrum analysis project in c6713b and i wish to take
  >data from a dat file
  >i tried like this
  >dat: .include"realdat.dat"
  >
  >and it is not working
  >any other command like this available ?
  >
  >can i do like this in c program for processor?
  >-- 
  > regards,
  > Joshy m. Jose
  > kerala , India
  > 91-9447976001
  >
  >
   


(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: reading data from a .dat file - Markos Nikolaos - Jan 30 16:42:13 2007

Joshy,

This a part of some code I used to open (create) a new empty *.h file, read short FIR
coefficients , rescale them and then
save the new results in the h file:

f1 = fopen ("coefficients.h", "w");
 fprintf (f1, "short coef[32] = { \n");

 for (j=0;j<4;j++){
  fprintf (f1, "%d, %d, %d, %d, %d, %d, %d, %d, \n", coef[8*j]*32767/8752,\
  coef[8*j+1]*32767/8752,\
  coef[8*j+2]*32767/8752,\
  coef[8*j+3]*32767/8752,\
  coef[8*j+4]*32767/8752,\
  coef[8*j+5]*32767/8752,\
  coef[8*j+6]*32767/8752,\
  coef[8*j+7]*32767/8752);
 };

 fprintf (f1, "}; \n"); 
 fclose (f1);

All you have to do is change .h to .dat and it should work, Ive tried it myself.
I suspect you dont have the required libraries included. Try rts6713, stdio.h and ..that should
be it.
Let us know i if it worked ;)

Nicolas
  ----- Original Message ----- 
  From: joshy jose 
  To: c...@yahoogroups.com 
  Sent: Monday, January 29, 2007 2:40 PM
  Subject: [c6x] reading data from a .dat file
  hai firends,
  i am doing a spectrum analysis project in c6713b and i wish to take
  data from a dat file
  i tried like this
  dat: .include"realdat.dat"

  and it is not working
  any other command like this available ?

  can i do like this in c program for processor?
  -- 
  regards,
  Joshy m. Jose
  kerala , India
  91-9447976001
   


(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )