From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-02-2016 04:33 AM
Hi Programmer,
I am new to Labview.
I received a "large" program for study purpose.
Large in terms of UI(3x1080pix to fit) and program size (main.vi 2MB in size).
It makes it difficult to read and study, example, selecting "Case" and "Stacked Sequence Structure", need few seconds to load. Any object or line move from diagram screen will need time to refresh.
Saving the program even longer. I am using a 32bit / 4 core I5 Laptop.
My question.
The "Slow" is it due to Large Diagram?
or Huge main.vi program?
Will creating more sub VI can solve the "Slow" issue?
Will placing the tools closer, smaller diagram will help?
Thanks,
Newbie ..
09-02-2016 04:39 AM
09-02-2016 04:57 AM
It depends on your system configuarion as well.
The problem you are facing is Slow as well as readability issue
(If LabVIEW Program is coded with proper standards you most probably wont face such issues)
First go through the LabVIEW Basics as well as standards, then probably you can change the Program
Ideally Block diagram Logic should be Limited to single page hope your current program has many pages which makes you to scroll and due to slower you are facing problem.
09-02-2016 04:58 AM
"I am new to Labview.
I received a "large" program for study purpose."
Bad. You will not learn any good from a bad design (stacked sequence structure is often a good indicator of bad programming skills). About usual programming mistakes / bad design, a good read is here: http://www.ni.com/newsletter/51735/en/
Forget this VI, and look for proper learning resources! Do you have LV licence? You should go through the Core 1, 2, 3 online learning material. Check it here: http://ni.com/myni/self-paced-training
09-02-2016 12:31 PM
@Blokk wrote:"I am new to Labview.
I received a "large" program for study purpose."
Bad. You will not learn any good from a bad design (stacked sequence structure is often a good indicator of bad programming skills). About usual programming mistakes / bad design, a good read is here: http://www.ni.com/newsletter/51735/en/
Forget this VI, and look for proper learning resources! Do you have LV licence? You should go through the Core 1, 2, 3 online learning material. Check it here: http://ni.com/myni/self-paced-training
Ditto that!
My thoughts exactly!
If you do decide to stick with the bad example... feel free to ask here about suggestions to "make it better" and post the code you have (then cover your head).
Ben
09-02-2016 06:01 PM
@GaryWong wrote:
I received a "large" program for study purpose.
Large in terms of UI(3x1080pix to fit) and program size (main.vi 2MB in size).
3x1080 pixels is only 3240 total pixel area which is not much except for the lenght and very unusual aspect ratio.
Nobody just "receives" a large program. Who gave it to you? What are you supposed to do with it? (just study? learn bad programming practices? improve it?)
Are there diagram comments explaining the code? Are things arranged logically?
How much do you know about LabVIEW? Have you done all the basic tutorials or did they just throw you onto the shark infested deep end without teaching you to swim first?
@GaryWong wrote:
I am new to Labview.
It makes it difficult to read and study, example, selecting "Case" and "Stacked Sequence Structure", need few seconds to load.
Do NOT study it. Just from the description all you can possibly learn are bad coding habits. Just delete it and do the regular tutorials.
@GaryWong wrote:
Saving the program even longer. I am using a 32bit / 4 core I5 Laptop.
My question.
The "Slow" is it due to Large Diagram?
or Huge main.vi program?
Will creating more sub VI can solve the "Slow" issue?
Will placing the tools closer, smaller diagram will help?
Yes, Creating subVIs will improve compile time. Placing items closer will not.
What is the code complexity?
Where does the 2MB come from (diagram, code, data, etc).
(VI properties...Memory usage...Compiled code complexity).
What is the LabVIEW version?
What are the compiler settings (tools...options...environment...compiler).
How much memory does your computer have? (is "32bit" the OS or the LabVIEW bitness?)
Is the version of the VI the same as your LabVIEW version and if not, did you save it in the new version yet?