summaryrefslogtreecommitdiff
path: root/modules/scicos_blocks/src
diff options
context:
space:
mode:
authorShivendra2017-06-27 17:22:27 +0530
committerShivendra2017-06-27 17:22:27 +0530
commit79e536d46ba2986b4947cccd1fbff5ba186eb9e8 (patch)
tree5047e090d541f45b223db1fe954fa4da0ad18c96 /modules/scicos_blocks/src
parent3873de796d4e77bcf5c2a7a35a20ea56d37b1067 (diff)
downloadscilab_for_xcos_on_cloud-79e536d46ba2986b4947cccd1fbff5ba186eb9e8.tar.gz
scilab_for_xcos_on_cloud-79e536d46ba2986b4947cccd1fbff5ba186eb9e8.tar.bz2
scilab_for_xcos_on_cloud-79e536d46ba2986b4947cccd1fbff5ba186eb9e8.zip
tows_c implemented
Diffstat (limited to 'modules/scicos_blocks/src')
-rwxr-xr-xmodules/scicos_blocks/src/c/tows_c.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/scicos_blocks/src/c/tows_c.c b/modules/scicos_blocks/src/c/tows_c.c
index a087f70f7..b4e6a601d 100755
--- a/modules/scicos_blocks/src/c/tows_c.c
+++ b/modules/scicos_blocks/src/c/tows_c.c
@@ -101,6 +101,23 @@ SCICOS_BLOCKS_IMPEXP void tows_c(scicos_block *block, int flag)
* Author A.Layec - initial rev. 18/09/07
*/
{
+
+ //Writing to the log file for block identification modified@shivendra
+ printf("hello\n");
+ FILE* filePointer;
+ int processId;
+ char fileName[25];
+ char line[100];
+ filePointer = NULL;
+ processId = 0;
+ processId = getpid(); // On Linux
+ sprintf(fileName, "scilab-log-%d.txt", processId);
+ filePointer = fopen(fileName, "w");
+ int block_id=19;
+ fprintf(filePointer, "%d || Initialization %d\n", processId, -5);
+ fprintf(filePointer, "%d %d || %d\n", block_id, processId, -5);
+ fprintf(filePointer, "%d || Ending %d\n", processId, -5);
+ fclose(filePointer);
/* generic pointer */
SCSREAL_COP *u_d, *u_cd, *ptr_d, *sav_d;
SCSINT8_COP *u_c, *ptr_c, *sav_c;