Page 1 of 1
Re: Testing Script code for speed
Posted:
Sun Sep 23, 2018 10:17 am
by Battwell
this doesnt work in uccnc
tested with statusmessage instead of consolewriteline
was trying to pick up a timer
Re: Testing Script code for speed
Posted:
Sun Sep 23, 2018 1:57 pm
by kig23
Hi Terry, hi Battwell,
if you don't know (maybe you missed this topic), time ago Balazs wrote a Console plugin with redirecting the stdout to a listbox on a plugin Form. You can use Console.Write and Console.Writeline to display stuff, just have to enable the plugin. You can use this plugin for debugging. Hope my info is helpful for you.
Re: Testing Script code for speed
Posted:
Sun Sep 23, 2018 4:34 pm
by Battwell
i uploaded a good script for macro/macroloop speed testing to the uccnc toolbox section.
ive tested it on my system and it works well.
Re: Testing Script code for speed
Posted:
Mon Sep 24, 2018 3:51 pm
by cncdrive
Yes, I wrote a console plugin which installs with the UCCNC. It can be used as a console, the stdout is redirected to that and so all Console writes are redirected to it.
It is much faster than messageing into the statusbox. We often use it to debug simple things which requires lots of data to be written.
Re: Testing Script code for speed
Posted:
Tue Sep 25, 2018 11:29 am
by Battwell
just tried this- very nice!
what would be really nice is that if errorlog was written to it which would save re opening errorlog every time i make a coding mistake!
that would make my debugging much faster!
i like that it stays on top
Re: Testing Script code for speed
Posted:
Tue Sep 25, 2018 12:01 pm
by dezsoe
Hm, it's a good idea to send the compiler error to the console too. I'd like it!