Address

Author Topic: Flow Chart Based Programming  (Read 2498 times)

electrimod

  • FamiLAB Member
  • Newbie
  • *
  • Posts: 19
    • View Profile
Flow Chart Based Programming
« on: July 16, 2012, 10:01:55 PM »
I am working on an open source program for programming microcontrollers by drawing flow charts.  Very similar to http://www.sourceboost.com/Products/Flowcode/Overview.html
I would like to know what what features other may want?  I am not limiting it to any particular language or platform.  I am inputing data in to the database for my Electrimod Mini modules but it isn't difficult to add other languages with custom databases. 
I have written the program in C# so currently it is Windows only.  If there is a big interested for this on other operating systems I may move it to wxWidgets.  I thought of moving it over now but I will just finish what I have going.
Thanks for the input
Electrimod.com - Modular Electronics
Exoge.com - Modular Simplicity

ThantiK

  • FamiLAB Member
  • Full Member
  • *
  • Posts: 237
  • Resident 3D printer guru.
    • View Profile
Re: Flow Chart Based Programming
« Reply #1 on: July 18, 2012, 05:15:36 PM »
This sounds insanely familiar to scratch.   http://seaside.citilab.eu/scratch/arduino/

AtomicProf

  • FamiLAB Member
  • Sr. Member
  • *
  • Posts: 359
    • View Profile
Re: Flow Chart Based Programming
« Reply #2 on: July 18, 2012, 05:58:53 PM »
I made some training software for Naval Nuclear Power school, when I worked at the Bettis Atomic Power Laboratory.  The managers had selected Macromedia Authorware as the development platform long before I came on board. Mainly because it supposedly had a low learning curve and "anyone" could program just by dragging these pretty blocks out onto the canvas.. 


Sigh..  So I often got comments on how my lessons were so much better than other peoples lessons.  And then other people were using my code snippets, etc. etc.  And my "secret" was that I found that macromedia left hooks into the blocks so I could program with normal pseudo code logic to make the type of interaction happen that I wanted to make happen.


And that is what I would suggest.  Allow for language support in each of your flow diagram blocks.  That's where the power will come from.
There is Quality in the Details
That is All

electrimod

  • FamiLAB Member
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Flow Chart Based Programming
« Reply #3 on: July 18, 2012, 08:32:04 PM »
The application is powered by a database that contains the commands in libraries along with their parameters.  It has the data type and return type for all parameters.  Commands are associated with flow symbols so that when a symbol is chosen it gives you a list of available commands.  Once a command is selected the parameters are filled in by either a literal value or by choosing a variable of the appropriate type.  The flow chart generates the languag of choice on the fly.  It is not it's own language.  It is more like a RAD tool.
Electrimod.com - Modular Electronics
Exoge.com - Modular Simplicity

electrimod

  • FamiLAB Member
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Flow Chart Based Programming
« Reply #4 on: July 18, 2012, 11:50:53 PM »
Here is two snapshops of the program.  So of the items under Edit SQL will be renamed.  Modules is really Classes or Libraries.  It varies really between languages but hopefully everyone can figure out what they are.  Under there you add your class/library, then add your functions, and then the parameters.  Parameters are chose from the Types list which can also be manipulated.  I have it in place where bounds can be set on each type but have no configured testing the bounds when a literal value is entered.
The other shot is of the actual flow chart and the data symbol is selected with the test command selected and a variable for the only parameter it has.  The box below will actually show the code as it is being written.  Most likely the code will be read only but the selected symbol will highlight its code.  This will help many pick up the language because the files can be exported and then compiled with their favorite compiler.
I am sure enventually the symantics can be entered to directly compile and link but thats way down the road.  The biggest obstacle is buidling the language and library.
 
Electrimod.com - Modular Electronics
Exoge.com - Modular Simplicity

tomlong74

  • FamiLAB Member
  • Full Member
  • *
  • Posts: 127
    • View Profile
Re: Flow Chart Based Programming
« Reply #5 on: September 25, 2012, 02:57:41 PM »
I 2nd the the programmable logic blocks. GameMaker does this and it is the reason it's use able by anyone over the age 12. It makes it easy to pick up and then keeps on growing with you.