03-05-2010 10:00 AM
Just a simple question really. I was just wondering whether an application created in LabVIEW will put less strain on your CPU when it runs compared to the same vi run through LabVIEW. I assume it is, but is the difference considerable?
Regards
Luke
Solved! Go to Solution.
03-05-2010 10:17 AM
Automatic Error handling and debugging are the only things that are different CPU wise. So if you handle all of your error clusters and disable debugging, the CPU load should be about the same.
Ben
03-05-2010 10:18 AM
Are you talking about an exe made in labview vs. running the code through the labview application?
Yik
03-05-2010 10:51 AM
Thanks for the responses. Yik, I think you've got it, in more detail, I'm talking about the difference between running a vi you've made through LabVIEW compared to when you convert the same vi to an exe and install and run it on another PC for instance. I hope that is a little clearer.
Ben, I vaguely remember noticing a large difference in mem usage between the two when I was poking around in task manager. I don't suppose this would make a difference if you going for max performance. I'm not quite a computer expert so I hope it makes sense!
Cheers
Luke
03-05-2010 11:07 AM
I guess you could take into account the memory that has to be loaded when you have the LabVIEW environment open,
but that has nothing to do with CPU. For all intents and purposes, I would say it requires the same CPU either way.
03-05-2010 11:18 AM - edited 03-05-2010 11:23 AM
lpaza wrote:I was just wondering whether an application created in LabVIEW will put less strain on your CPU when it runs compared to the same vi run through LabVIEW.
03-05-2010 11:52 AM
To be honest it was mostly curiosity over concern. My company have been using NI, but never Labview so they tested it on me (the intern guinipig) and I made a few programically messy but functional programs a few months ago. As I'm becoming more familiar with it, i'm just neatening them up and was just wondering about differences in performance when they're moved to other PC's. Thanks for all the responses though guys
03-05-2010 01:49 PM
03-05-2010 02:23 PM
Mark Yedinak wrote:
... The big difference is that poorly written code will perform poorly and well written code will perform effeciently....
Haha, well said! Couldnt get more simple than that
03-05-2010 02:52 PM
Mark Yedinak wrote:
... The big difference is that poorly written code will perform poorly and well written code will perform effeciently....
The problem with the simplicity of that statement is that an untrained eye could have trouble distinguishing between poor and well written LV code.
But then again, Christian's code always looks good. But I know he cheats.
Ben