BASICtools idea.

Questions about the BASICtools and MakeItC
Post Reply
Mr_Simplicity
Posts: 8
Joined: Sun Feb 17, 2013 5:05 pm

BASICtools idea.

Post by Mr_Simplicity »

I'm a very mouse oriented programmer as opposed to using keyboard commands.
I'd love to have a reload file button so I don't have to use the menu.

By the way, I just finished a fuel pressure regulator program using a PID algorithm and hardware PWM.
The program talks via the serial port to a LabView Program which I use to tune the loop.
The SuperPro Board along with Armbasic made the project a breeze, less than 135 lines of easy to read code.
Doing this project in C or assembler would have been painful.

Keep up the great work.



basicchip
Posts: 1090
Joined: Fri Oct 19, 2012 2:39 am
Location: Weeki Watchee, FL
Contact:

Re: BASICtools idea.

Post by basicchip »

Mouse command, I assume you mean by right click. I guess it could open up a quick pulldown, I haven't played with that much in Tcl. BTW we do publish the source for BASICtools, and we have had users go in and muck with it (-t you know who you are :) )

If you suggest how the mouse command would work.

Mr_Simplicity
Posts: 8
Joined: Sun Feb 17, 2013 5:05 pm

Re: BASICtools idea.

Post by Mr_Simplicity »

No no. I meant like the "Run" "Stop" "Clear" "Reset" push buttons.
If there was also a "Reload" button the whole development cycle is covered.
As in "Run". Ahh I see! Need to change blah blah. "Stop". Click on editor, make change, Save.
Click on BASICtools. Hit "Reload" watch compile & download. Click "Run"!
Every action is based on clicking an easy to reach button or window with no menu actions at all.

Mr_Simplicity
Posts: 8
Joined: Sun Feb 17, 2013 5:05 pm

Re: BASICtools idea.

Post by Mr_Simplicity »

Yea. I had a go at editing TclTerm.tcl and sure enough it wasn't hard to add a "Reload" button.
While I was at it I added an "Editor" button as well. Works great!
I've included the TclTerm.tcl file. Just compile as in "Freewrap.exe TclTerm.tcl" and replace the TclTerm.exe in your Coridium Folder with the newly created one.
TclTerm.zip
(12.96 KiB) Downloaded 584 times

olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: BASICtools idea.

Post by olzeke51 »

did the "Reload" and "Editor" button get removed along the way ??
It sounded like it would be added.
I use the Reload function a lot ( I kindof worry about the wear and tear on the chip,
but 10,000 is a lot of read/writes !!!)
Regards,
'
sorry, misunderstood -- Mr. Simplicity added the buttons, not Coridium !!!BUT .........

olzeke51
Posts: 414
Joined: Sat May 17, 2014 4:22 pm
Location: South Carolina

Re: BASICtools idea.

Post by olzeke51 »

SYSADMIN : if this violates anything - pull it !!
Being that I make too many mistakes in my Basic Programming, I am switching between the editor and BT
all the time. I decided to investigate a mouse button for the 'reload' function (-since I just used my mouse to get
into the BT window) Mr Simplicity laid the ground work for this mod to the TclTerm.tcl file --located in my Basic
program file folder
**** USE AS IS, NO WARRANTIES - NOT checked in the MakeItC version !!!!
hasn't broken me yet. You will have to update the xx.tcl file with each update from Coridium
line numbers refer to notepad++ numbers
*****
1]
at approx line 48 add this line - sets a variable
set xlReloadButton "Reload"
/////
set xlRunButton "Run"
set xlStopButton "Stop"
set xlReloadButton "Reload"
set xlOffline "offline"
///////
2]
****some of the time 'buttons needs to be shortened to buttns
****seems to conflict with some RS232 routines
at approx line (new) 1345 in the setup windows section -- creates a button function
button $::topWdw.buttns.reload -text $::xlReloadButton -command { resendFile }
///////
################ setup windows
'
frame $::topWdw.buttns
pack $::topWdw.buttns -side top
button $::topWdw.buttns.res -text $::xlResetButton -command { resetButton }
button $::topWdw.buttns.clr -text $::xlClearButton -command { clearButton }
button $::topWdw.buttns.reload -text $::xlReloadButton -command { resendFile }
if {$::BASICtools} {
////////
3]
at approx line (new) 1358 in the setup window section -- places the position of buttn
pack $::topWdw.buttns.reload -side right -padx 5
///////
pack $::topWdw.buttns.clr -side right -padx 5
if {$::BASICtools} {
pack $::topWdw.buttns.esc -side right -padx 5
pack $::topWdw.buttns.run -side right -padx 5
pack $::topWdw.buttns.reload -side right -padx 5
} elseif {$::TOOLname == "MakeItC"} {
# pack $::topWdw.buttns.run -side right -padx 5
}
pack $::topWdw.buttns.bas -side right -padx 5
///////
Thank You, Coridium for the source code
Thank You , Mr. Simplicity for doing the grunt work - I'm not a tcl person !!

Post Reply