LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Laggy GUI

JosephVictorWagieh_0-1687531862495.png

my project is based displaying pictures and values from http web. 

the more i add stuffs and indicators the more it gets laggy,

is there a way to make it less laggy?

it aint completed yet i have to add 3d parts and even more plots.

 

0 Kudos
Message 1 of 9
(1,244 Views)
  1. Use the same HTTP session for all requests.
  2. Don't send empty requests.
0 Kudos
Message 2 of 9
(1,232 Views)
  • All your "code islands" try to run in parallel, some communicating with the same device. Keep the connection open as already said.
  • Where is the top-level loop?
  • You only need to get the draw area once, so that belongs outside the top-level loop
  • Etc.
0 Kudos
Message 3 of 9
(1,215 Views)

JosephVictorWagieh_0-1687546664042.png

you mean something similar to this? same session for multiple purpose

also can you tell me what do you mean by empty sessions?

you mean the one with 192.168.4.1 empty with the structure case? can you suggest me a better replacement if you meant this.

 

0 Kudos
Message 4 of 9
(1,173 Views)

i don't get what do you mean by top level loop? i use "run continuously" mode as i receive a stream of picture that i want to display so i it needs to be updated constantly.

i have provided the vi

0 Kudos
Message 5 of 9
(1,169 Views)

I wish NI would move the billko_0-1687554171777.png button to a menu so inexperienced LabVIEW programmers can't find it.  The billko_1-1687554215168.png button is a diagnostic tool only and shouldn't be used in place of a proper loop.

 

 

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 6 of 9
(1,138 Views)

@JosephVictorWagieh wrote:

i don't get what do you mean by top level loop? i use "run continuously" mode as i receive a stream of picture that i want to display so i it needs to be updated constantly.


Start reading here.

 

Quote: "Run continuously" is a misnomer. More accurate would be "restart the VI from scratch whenever it completes all of it's code".

 

Now read the rest of my post linked above (and maybe the entire thread).

 

 

0 Kudos
Message 7 of 9
(1,123 Views)

@billko wrote:

I wish NI would move the billko_0-1687554171777.png button to a menu so inexperienced LabVIEW programmers can't find it.


It should not even show on the front panel. Maybe having it on the diagram only would be OK. (See also my comment here)

Message 8 of 9
(1,120 Views)

@altenbach wrote:

@billko wrote:

I wish NI would move the billko_0-1687554171777.png button to a menu so inexperienced LabVIEW programmers can't find it.


It should not even show on the front panel. Maybe having it on the diagram only would be OK. (See also my comment here)


Ooh, judgement still hasn't been rendered on that idea so I added a kudos.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 9
(1,106 Views)