From b7923b66d95798168a0e31aa05059b0d80f83c46 Mon Sep 17 00:00:00 2001 From: Shashank Bhalotia Date: Wed, 12 Jul 2017 14:08:42 +0000 Subject: Update cfscope.c --- modules/scicos_blocks/src/c/cfscope.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/modules/scicos_blocks/src/c/cfscope.c b/modules/scicos_blocks/src/c/cfscope.c index c43a5afbc..f2821ecfe 100755 --- a/modules/scicos_blocks/src/c/cfscope.c +++ b/modules/scicos_blocks/src/c/cfscope.c @@ -43,7 +43,6 @@ #include "AxesModel.h" #define HISTORY_POINTS_THRESHOLD 4096 -//int graph_counter_CF=0; //modified_shank : number of graphs /***************************************************************************** * Internal container structure @@ -165,20 +164,7 @@ SCICOS_BLOCKS_IMPEXP void cfscope(scicos_block * block, scicos_flag flag) double *u; sco_data *sco; - //Writing to the block identification file modified@shivendra - // int static flag1=0; - // if(flag1==0) - // { - // flag1=1; - // FILE *fp; - - // char identify_block_name[25]; - // int pid=getpid(); - // sprintf(identify_block_name,"identify_block_%d.txt",pid); - // fp=fopen(identify_block_name,"a"); - // fprintf(fp, "3\n"); - // fclose(fp); - // } + int i; @@ -215,7 +201,7 @@ SCICOS_BLOCKS_IMPEXP void cfscope(scicos_block * block, scicos_flag flag) set_block_error(-5); break; } - //graph_counter_CF=1; // modified_shank : 1 graph + //fprintf(filePointer, "%d || Block Identifier %d\n",processId, block_id); fprintf(filePointer, "%d || Initialization %d\n", processId, iFigureUID); @@ -262,7 +248,7 @@ SCICOS_BLOCKS_IMPEXP void cfscope(scicos_block * block, scicos_flag flag) double z = 0; - fprintf(filePointer, "%d %d || %d | %d | %d || %f %f %f %d %f %f %f\n", block_id, processId, iFigureUID, iAxeUID, iPolylineUID, time, y, z,1,block->rpar[1],block->rpar[2],block->rpar[3],"CFSCOPE"); // modified_shank : 1 to indicate 1 graph in output and others for ymin,ymax and refreshBuffer + fprintf(filePointer, "%d %d || %d | %d | %d || %f %f %f %d %f %f %f\n", block_id, processId, iFigureUID, iAxeUID, iPolylineUID, time, y, z,1,block->rpar[1],block->rpar[2],block->rpar[3],"CFSCOPE"); result = pushData(block, 0, i); -- cgit