04-20-2018 01:52 AM - edited 04-20-2018 01:54 AM
Hello all,
I found out one big problem in Lab View which is the program become slower when I execute it as the program growing larger and bigger. Sometimes,the program will automatic stop and not responding due to unstable and need to open again.
I m currently using the Lab View 2015 version.
If anyone have any solution or ideas,feel free to comment and answer. I really appreciate for your help.
04-20-2018 01:57 AM
Hi,
Is it your program that's creating the problems ?
04-20-2018 02:14 AM
Nope.Jay0909. My program is free from any error. It become slow as I add more features to it. I m thinking if there is any way that I m able to make my program become more stable and run faster in the future.
04-20-2018 02:17 AM
Then you're doing something wrong. Are you e.g. using Event structure with a Producer/Consumer pattern, possibly with several consumers if it's slow processes? You should.
/Y
04-20-2018 02:31 AM
To Yamaeda,
Can you further explain of what I m doing wrong. Ya, I m using a lot of consumer/Producer event structure in my program.
04-20-2018 02:32 AM
Hi,
Can you post your vi?
04-20-2018 03:12 AM - edited 04-20-2018 03:13 AM
Hello Jay,
your explanation is very unspecific. There are some programming paradigms that help you to keep your program maintainable, extensible and responsive.
You wrote, that you use the producer-consumer-pattern a lot. Does it mean, you use a lot independent producers and consumers? How did you implement it?
04-20-2018 03:30 AM - edited 04-20-2018 03:31 AM
@jay689 wrote:
Nope.Jay0909. My program is free from any error. It become slow as I add more features to it. I m thinking if there is any way that I m able to make my program become more stable and run faster in the future.
No program is ever free from error, so please be reasonable.
Does the program get slower during editing as you add more features or does it become slower the longer it runs? What does the program do? How do you measure the speed. Is the execution speed actually slow or is it just sluggish when responding to user interactions? What is the CPU use when the program gets slow? How about memory use over time? Are there many loops that spin as fast as the computer allows? Does the program interact with instruments or third party drivers? Are you setting any unusual priorities? How quickly do your event complete?
Obviously, you are doing something wrong because there are very big LabVIEW program that don't have that problem. Unless you show is some code, we cannot really help.
04-20-2018 04:34 AM - edited 04-20-2018 04:36 AM
@altenbach wrote:
@jay689 wrote:
Nope.Jay0909. My program is free from any error.
No program is ever free from error, so please be reasonable.
I took this as a joke and I admit I even laughed (shortly).
We all have our dreams...
04-20-2018 09:36 AM
@jay689 wrote:
My program is free from any error.
LOL famous last words...
Anyway nobody can help you unless you post your code.