Visual Programming Languages?

Status
Not open for further replies.

R2P2

Ars Praefectus
3,783
Subscriptor
Does any around here have any experience with visual programming languages, like Prograph? Not "visual" like Visual Basic, but visual like programming-with-pictures. I'm working on this kind of stuff at a new job, and I'm kinda wondering whether anyone actually uses this stuff, or if it's just the kind of thing university-folks like to screw around with. :confused:
 

Sans

Wise, Aged Ars Veteran
144
And what I really love about those languages is the fact that they all seem to have a "graphic" that allows you to actually type in their own brand of code.

Not that they have to be bad though, Macromedia Flash is basically a graphical programming language and it's done very well. But when you can't get it done any other way, there's a Flash scripting language you can use.
 

wb

Ars Legatus Legionis
25,208
Subscriptor
Well, if you buy LEGO mindstorms the IDE has a very visual programming language that drives me insane. Of course, there are also freely available C libraries, which I prefer.

Some of the media development stuff like Director is a fairly visual programming language IMHO, but not as much as the LEGO stuff, or prograph, or some of the other tools out there.

Also, my company makes a product that in many ways could be construed as visual programming for engineering design processes. You simply visually link the analysis codes together to form an integrated process that is automatically performed.
 
Text-based languages organize commands in a clear, linear order, and usually indent blocks for even more clarity. On the other side, we have this:

prograph.gif


What does that mean? Where does it start? Where does it end?


That said, a tool like Visio or Rational Rose that can visually model a set of objects and their interrelationships, and even generate framework code from that, can be extremely useful.
 

R2P2

Ars Praefectus
3,783
Subscriptor
Thanatos22 -- Prograph isn't _that_ hard to understand, once you know what's going on. The function starts at the top bar; the connections on the top of an object are the inputs to the function it represents, and the connections on the bottom are the outputs. Each object executes when all of its inputs are available, and the function returns when all of the inputs to the bottom bar are available.

It does get really, really messy, though. Prograph lets you make a "local function", which basically sticks an object into your function that can be double-clicked to open up another window that contains all of the local function's operations.

gumbo -- You don't select operations from a menu; you just label an object with the operation, i.e. an object that is supposed to add its inputs is just labelled "+".

I thought this stuff was kind of for n00bies, and I guess the similarity to the Mindstorm language kind of confirms that ;)
 

R2P2

Ars Praefectus
3,783
Subscriptor
Originally posted by gubmo:
So it has something like a moveable textbox, where the actual command is put, then the lines are for the different vairables and such that go in and out?

gubmo
Exactly; those lines are called datalinks because of that. Prograph also has synchronization lines, to force one operation to be completed before another.
 
NI markets both hardware and software for data-acquisition/control applications used in labs and manufacturing environments. Their preferred way for customers to interact with hardware is through a product called "LabView" which is a graphical programming environment (I think the languge itself is actaully called "G", but its always just referred to as "LabView").

Much of the "language" is very tied to the hardware you are using, i.e. there's icons for taking digital and analog samples or reading a thermistor, etc. But it also has capabilities for flow control and a huge suite of mathematical functionality built in (you wouldn't need to write your own FFT code, for example) as well as facilities for graphic presentation of the data and GUI creation. The model is very data-driven. Trying to write an imperative program that just executes a lot of steps in a given order is surprisingly dificult.

Personally, I hated it.
 
Status
Not open for further replies.