int stat_sinfreq,stat_sampfreq, stat_outsignal,stat_errfreq,stat_errphase; int datatype; float fsin,freq; float err_freq,err_phase; int output[OUTPUT_MAX_DATA]; struct utils_param params[] = { {"freq", STAT_TYPE_FLOAT, 1, &fsin}, {"datatype",STAT_TYPE_INT,1,&datatype}, {"error_freq",STAT_TYPE_FLOAT,1,&err_freq}, {"error_phase",STAT_TYPE_FLOAT,1,&err_phase}, {NULL, 0, 0, 0}}; struct utils_stat stats[] = { {"freq", STAT_TYPE_FLOAT, 1, &stat_sinfreq, (void*)&fsin, READ}, {"error_freq", STAT_TYPE_FLOAT, 1, &stat_errfreq, (void*)&err_freq, READ}, {"error_phase", STAT_TYPE_FLOAT, 1, &stat_errphase, (void*)&err_phase, READ}, {"out_signal", STAT_TYPE_INT, 1024, &stat_outsignal, (void*)output, WRITE}, {NULL, 0, 0, 0, 0, 0}};