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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I make vi run faster?

Solved!
Go to solution

hi ,

i want to know how can i make the VI run faster . i am using Communication with database .while Loop . case structure .

0 Kudos
Message 1 of 37
(3,327 Views)

That information helps nothing, so i'll answer with the only statement i know to be true: Upgrade your computer and server.

(I assume there are much improvements to be done on the code, but since you didn't attach the .vi there's nothing to answer to)

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 37
(3,296 Views)

Remove the communication with the database, that will speed things up.

Message 3 of 37
(3,281 Views)

Taking out the while loop should make your program execute to completion much more quickly.

 

In all seriousness, nobody has a crystal ball that gives us a copy of your vi. It is impossible to tell what could speed up your application based on the description that you have given.

Message 4 of 37
(3,259 Views)

@Emna20 wrote:

hi ,

i want to know how can i make the VI run faster . i am using Communication with database .while Loop . case structure .


What is the rate limiting step? (My guess is the "communication", but who knows? Maybe your top-level loop has a 10s wait ...).

 

How do you measure the speed? What is it now? What speed do you need?

 

Your post does not contain any useful information. 

0 Kudos
Message 5 of 37
(3,229 Views)

It's a bad sign when someone says "the VI".  That might mean that all of the code is in one VI.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 6 of 37
(3,208 Views)

@paul_cardinale wrote:

It's a bad sign when someone says "the VI".  That might mean that all of the code is in one VI.


Yes, but a large VI has more gravity assist, making free-fall faster. 😄

Message 7 of 37
(3,186 Views)

@altenbach wrote:

@paul_cardinale wrote:

It's a bad sign when someone says "the VI".  That might mean that all of the code is in one VI.


Yes, but a large VI has more gravity assist, making free-fall faster. 😄


I though Galileo debunked that idea,

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 8 of 37
(3,171 Views)

@paul_cardinale wrote:


I though Galileo debunked that idea,


Somebody's never dropped a feather and a brick outside of a vacuum...


GCentral
0 Kudos
Message 9 of 37
(3,167 Views)

OTOH, a huge diagram acts like a parachute. 😄

0 Kudos
Message 10 of 37
(3,157 Views)