11-25-2008 10:26 PM
But Text based languages seem to use considerabily less amount of memory and the are quite fast too...
I think graphical development capability comes with lot of memory consumption....?
11-26-2008 12:44 AM
11-26-2008 07:54 AM
lordsathish wrote:But Text based languages seem to use considerabily less amount of memory and the are quite fast too...
I think graphical development capability comes with lot of memory consumption....?
I think in most cases you're probably right. However, narrowing the scope of the argument to a compiled executable, there are a variety of reasons for high memory consumption. My observation is that many people who develop in LabVIEW emply poor practices that increase the liklihood of sub-par performance. It's like any other language in that respect. Many assume that it's an "easy" environment and neglect to pay attention to the housekeeping details. There's an enormous difference between the performance of a well written LabVIEW application and a poorly written one.
In the scope of the development environment, I would agree that the complexity of the UI mandates the use of more resources, and I don't think very many people would argue against that. Honestly, though, I think the executable is where performance and memory consumption count the most. (Unless you're running your applications as source code)
Another thought: I believe that much of the resource consumption is also due to the complexity of the hardware interface stuff. Namely, all of the drivers such as DAQmx that are running in the background. We take for granted quite a bit of overhead that's involved in efficiently interfacing with hardware.
It's like the Mac vs. PC argument or partisan politics - I don't think we'll ever stop debating this subject. It's funny how the topic just keeps surfacing over and over. ![]()
Oh, wait - what was the subject matter of this thread?
11-26-2008 08:08 AM - edited 11-26-2008 08:12 AM
lordsathish wrote:But Text based languages seem to use considerabily less amount of memory ...
The source code file, well yes, but I am more than happy to make the PC work harder so I can develop faster.
lordsathish wrote:... and the are quite fast too...
In most cases the machine code produced by LV is every bit as fast as that produced using text languages.
lordsathish wrote:...
I think graphical development capability comes with lot of memory consumption....?
As mentioned previously, many newbies write code that squanders memory useage. It has always been possible to use memory efficiently in LV but it required more thought than most people wanted to invest since memory is cheap.
So...
Well written LV programs are as fast and efficient as programs developed in diferent languages.
The two biggest difference I have seen between developing in text based lanuages and LV are;
1) I can read a well writtin LV VI in seconds. (Try to do that in text)
2) I NEVER have to find and fix a syntax error.*
Ben
* At one time I ws being refered too as "The LV Evangilist", any wonder why? ![]()
11-26-2008 08:51 AM
For more reading on the subject of LV vs others see this thread andthis thread.
Ben
11-26-2008 11:10 PM
11-28-2008 07:43 AM
lordsathish wrote:
Then where could i find how to write good an efficient LabVIEW codes....?
This list of Tags can get you started.
Monitoring the discusions in this forum,
Monitoring your CPU using task manager while you test your code, and
Benchmarking alternative code constructs will also help.
As you go if you can't figure out why the code is running as fast as you would expect, start a thread and let us help out.
Just trying to help,
Ben