LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW program is very very slow

What is the maximum size of the labview program??.I am working on a
LabVIEW program of size 50MB.It is very very slow.It is taking minutes
of time for each action to edit.My sysyem is having 512MB RAM and 80GB
hard disk space.

Please provide me the
solution for this problem.

0 Kudos
Message 1 of 7
(3,730 Views)

Are you saying ONE VI is 50 MB?

If so, then I suggest that your architecture (or lack thereof...) is the problem.

If not, then running 50MB of LabVIEW code should not be an inherent problem. I assume that you have plenty of RAM?

-- Rob

0 Kudos
Message 2 of 7
(3,705 Views)
A huge number of controls displayed on a front panel could indeed cause troubles with editing speed. Also happens if you have complex controls (like graphs) that store a large amount of data. Try to get rid of unnecessary controls (and indicators) either by completely removing them or using the Hide Control method. A single VI isn't likely to have 50 mb size with proper architectural solution. Maybe your problem is that some graph indicator (like an intesity graph) holds an enormous amount of data as default. In that case, write an empty array into it and use Make Current Value Default method.

If that didn't help, save your front panel (and, probably, block diagram) to an image file (either by PrintScreen or by built-in function) and provide us with it.
0 Kudos
Message 3 of 7
(3,680 Views)

If controls & indicators are your problem you can also disable panel updates before changing them all and then enable front panel updates when you're done

Another thing that can slow things way down is Property node wirtes & local variable writes. Disabling/Enabling the panel can help in that case as well.

0 Kudos
Message 4 of 7
(3,663 Views)
In addition to all the other comments, 512MB of RAM is really marginal on any recent OS, especially of you try to work with large projects.
 
You definitely should upgrade your RAM.
 
Do you see lots of disk activity during the delays? What else is running on the PC? Look at the task manager (or equivalent). What is the CPU  and RAM use, etc.?
 
What is your LabVIEW version and OS? (Win XP, Linux, MAC, etc.).
0 Kudos
Message 5 of 7
(3,659 Views)
One more question to add to the others. You say the "program" is 50 MB. What size are you referring to? Is this the file size of 1 VI (I hope not), the total size of the directory of VIs included, or are you looking at the VI properties and getting this number from something in the "Memory Usage" section?
 
I have a program that is several hundred VIs which is less than 15 MB of actual disk space, so I'm curious where this 50 MB is coming from. Although 8.2 creates much smaller VIs, so you may just be on an older version.
0 Kudos
Message 6 of 7
(3,643 Views)
Dropping an item or editing an item on a block diagram is an operation of order N squared with N being the number of objects on the diagram.  If you have one VI with 50MBytes of code, this could easily lead to the issue.  Breaking your code into subVIs should solve the issue.
Message 7 of 7
(3,616 Views)