diff options
author | Shashank Bhalotia | 2017-07-18 13:53:06 +0000 |
---|---|---|
committer | GitHub | 2017-07-18 13:53:06 +0000 |
commit | 34e39bfa7b132b708bd8c76079e520a8ee499cd0 (patch) | |
tree | d4fc94ac2b2eef22086c7c2220ba62c9f25921e2 | |
parent | 0296fca17ae80933a75f4e892470ecb70033651e (diff) | |
download | scilab_for_xcos_on_cloud-34e39bfa7b132b708bd8c76079e520a8ee499cd0.tar.gz scilab_for_xcos_on_cloud-34e39bfa7b132b708bd8c76079e520a8ee499cd0.tar.bz2 scilab_for_xcos_on_cloud-34e39bfa7b132b708bd8c76079e520a8ee499cd0.zip |
Update BARXY_sim.sci
-rwxr-xr-x | modules/scicos_blocks/macros/Sinks/BARXY_sim.sci | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/scicos_blocks/macros/Sinks/BARXY_sim.sci b/modules/scicos_blocks/macros/Sinks/BARXY_sim.sci index 0b37ebb7e..9da76602b 100755 --- a/modules/scicos_blocks/macros/Sinks/BARXY_sim.sci +++ b/modules/scicos_blocks/macros/Sinks/BARXY_sim.sci @@ -55,7 +55,6 @@ function block=BARXY_sim(block,flag) // Output update u1=block.inptr(1); u2=block.inptr(2); - f = findobj("Tag", block.uid); a = f.children; @@ -63,17 +62,12 @@ function block=BARXY_sim(block,flag) // Open the file in append mode fd = mopen(scilab_filename,'a+'); - // Block_id of BARXY - 11 - mfprintf(fd,'%d || Block Identifier %d', pid, 11); - // Print the co-ordinates of line - mfprintf(fd,' %s %s ', string(u1), string(u2)); - mfprintf(fd,'%s ', string(block.rpar)); - // Print the name of block and line thickness - mfprintf(fd, '%s %s\n', 'BARXY ',string(block.ipar)); + // Block_id of BARXY - 11, Print the co-ordinates of line, Print the name of block and line thickness + mfprintf(fd,'%d || Block Identifier %d %f %f %f %f %f %f %f %f %s%s\n', pid, 11, u1(1), u2(1), u1(2), u2(2), block.rpar(1), block.rpar(2), block.rpar(3), block.rpar(4), 'BARXY ', string(block.ipar)); mclose(fd); a.children(1).data = [u1, u2] end -endfunction
\ No newline at end of file +endfunction |