manojba Posted October 8, 2008 Report Share Posted October 8, 2008 Are there any difference between C while loop and Labview while loop, I know one that is labview while loop is do while loop that is it executes atleast once other than this are there any major differences... Quote Link to comment
LAVA 1.0 Content Posted October 8, 2008 Report Share Posted October 8, 2008 QUOTE (manojba @ Oct 7 2008, 12:19 PM) Are there any difference between C while loop and Labview while loop, I know one that is labview while loop is do while loop that is it executes atleast once other than this are there any major differences... It can be a 'Do While' or a 'Do Until', it can auto-index at outputs and inputs (for each). Ton PS and it is patented by NI Quote Link to comment
Francois Normandin Posted October 8, 2008 Report Share Posted October 8, 2008 QUOTE (Ton @ Oct 7 2008, 07:05 AM) PS and it is patented by NI How can you patent a "for loop"? Is it the actual algorithm or its graphical representation? Quote Link to comment
mje Posted October 8, 2008 Report Share Posted October 8, 2008 The lack of break/continue statements is a big difference. Easily worked around by using case structures, but I've missed them often enough to wish there was some way of having the constructs in a graphical language. Quote Link to comment
Aristos Queue Posted October 8, 2008 Report Share Posted October 8, 2008 QUOTE (normandinf @ Oct 7 2008, 07:24 AM) How can you patent a "for loop"? Is it the actual algorithm or its graphical representation? It isn't actually patented any more. The patent expired on Valentine's Day, 2007. But that does still leave the question: How could it ever have been patented? Story Time! When I started working at NI, Jeff Kodosky, founder of company and father of LabVIEW, gave a presentation to the new hires about how NI tries to only apply for valid patents and tries to avoid filing for the silly patents that have plagued software development over the decades. We don't always have the option because in the current patent system, if you don't apply for something, a competitor may apply for it and put you out of business. But by and large, NI has been good about this. A couple days later, waiting for a long compile, I was scrolling through the list of NI patents. And I found a patent on "use of rectangles in a graphical programming language." The patent had Jeff K as the author. And I went to Jeff and I said, "Really? Rectangles? You can't believe this was a valid patent!" As Jeff K explained, the titles on patents never tell the full story. :-) Here's the background: In the late 1960s and early 1970s, the concept of a dataflow programming first formed in various academic settings. A number of papers were published talking about how useful these languages could be in expressing parallelism. There was just one hitch -- no one could express a loop. My understanding (from Jeff) is that the syntax notation for a loop eluded everyone for over 10 years. People tried dotted lines along wires, codas (like in music to jump to a different point in the score), and a host of other things. Nothing could satisfactorally express a loop until Jeff K came up with the idea of structured dataflow and expressing the loop as a rectangle or other enclosing form. In retrospect it seems obvious, but according to Jeff it took him a full year of doodling (and not getting much else done for the young NI corporation) to hit upon the idea. The ideal was novel, clearly non-obvious at the time of discovery, and a significant R&D investment. Thus it justified being patented. The patent actually covered the concept of structured graphical data flow programming, the idea that a region of code -- not a particular wire segment or dataflow instruction -- was how programmers should specify flow-of-control notation for the program. And that's how you get a patent on For Loops. 1 Quote Link to comment
Francois Normandin Posted October 8, 2008 Report Share Posted October 8, 2008 QUOTE (Aristos Queue @ Oct 7 2008, 12:26 PM) Story Time!... And that's how you get a patent on For Loops. Interesting story. Thanks I'll try it on my nephew next time I want to put him to bed. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.