LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to deal with disappearing indicators

The front panel does not show many of my controls and indicators.  They are there, as I can select them, double click on them, etc.  Occasionally parts will show up depending on other pupops that appear in front of them and then close.  I have tried Hide Indicator then Show Indicator, and it will show up again, until I scroll the screen.

Please forgive my hideous code...this is a work in progress.
0 Kudos
Message 1 of 8
(4,762 Views)

Looks like a bit of corruption to me.

I ran it once and everything popped up and looks OK now....

________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 2 of 8
(4,755 Views)
I have not fully studied your code, but you are really hammering your CPU and graphics system.
  1. Don't do overlapping oblejcts. e.g. don't place the plot legend on top of the graph area or the cursor diamonds behind another graph.
  2. You have huge amounts of data in your graphs. I would use simpler plot styles.
  3. Your main loop has no wait and you are constantly doing excessive property nodes even though nothing has changed.
  4. You should use an event structure and redraw the indicators only when something changes. Use value change and cursor change events.
  5. Combine your property nodes and get rid of the sequences structures.

 

Message 3 of 8
(4,753 Views)


altenbach wrote:
* Combine your property nodes and get rid of the sequences structures.

Here is one example, same goes for all others:
 
 


Message Edited by altenbach on 04-29-2008 08:05 AM
Message 4 of 8
(4,744 Views)
TW Gomez

Thank you...the version you posted now works fine for me.  Strange.

To all the others, I welcome all of your suggestions.  I plan on fixing all of the code issues now that I can see my controls and indicators again.

Thank you to all who have responded.

- John
0 Kudos
Message 5 of 8
(4,743 Views)
For the record, what version of LabView are all of you running who were able to view my controls.  I am running 8.5.

I just received the following message from a coworker who tried out my original program...

this is a good one - the great thing is as soon as I opened it in 8.5 my front panels in my 8.2.1 panel concurrently running started losing controls.
thanks alot

I would love to hear some explanations.
0 Kudos
Message 6 of 8
(4,692 Views)
  • Did you fix the problem with overlapping front panel objects?
  • Did you at least place a small wait in your loop?

With each iteration of the loop, you are doing many synchronous property node calls and redrawing stacks of overlapping objects, each containing tons of data. Maybe the grahpic system simply cannot keep up.

Open the task manager. What is the CPU usage?



Message Edited by altenbach on 04-29-2008 10:39 AM
0 Kudos
Message 7 of 8
(4,687 Views)

"I would love to hear some explanations."

Will you settle for a guess?

I experienced some very bad graphic behaviour under heavy CPU loads in LV 8.2.1 that just "went away" in LV 8.5. They manifested themselves in different ways ranging from bottons sticking to charts that would plot garbage. But due to the fact that LV 8.5 was the fix, I was never able to get a difiniative answer on what caused the behaviour or a CAR number.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 8
(4,680 Views)