LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Orphaned/lost front panel objects

Solved!
Go to solution

Hello LabVIEW Gurus!

 

I have a front panel that contains one or more objects way, way off to the left of the origing that I cannot scroll over to them.  Attmpting to scroll more than three or four screen widths caused the entire LabVIEW session to stop responding so I have to kill the process via the nasty Windows XP Program Manager and start all over again.  Is there anyway to find out what is way over there and relocate the missing object(s) (if they are even needed!) without trying to scroll there?

 

Michael

0 Kudos
Message 1 of 11
(4,276 Views)

Are you able to get those objects on screen by moving the white box in the navigation window?

 

Do you have the navigation window open when you are doing the scrolling?  If you find scrolling or moving objects in the window is too slow, try closing the navigation window.  LabVIEW will run a bit faster if it doesn't have to continually try to update the navigation window. 

0 Kudos
Message 2 of 11
(4,274 Views)

As an alternate, 

 

What i understood is you have a reference control/indicator at the center and you would like to move those controls which are extreame left to this reference control

 

1) Get the location of the this reference control programatically (use the "position" property node)

2) Write the "position value+offset" of this reference control to the position value of the control which you want to bring to center.

 

 

 

Guru

Regards
Guru (CLA)
0 Kudos
Message 3 of 11
(4,267 Views)

If you double click on the terminal in the block diagram it will take you to the front panel object. You can then drag it to a more suitable location

David
www.controlsoftwaresolutions.com
0 Kudos
Message 4 of 11
(4,257 Views)

Hi everyone - thanks for the suggestions.  Unfortunately I don't know what the missing object is so I can't use its property node to relocate it.  And, any attempt to get over there via the front panel scrollbar or the navagation window ends in the LabVIEW session crashing.

 

One thought I had was to somehow do a "select all", then deselect all the objects I can see on the from panel somehow then do a simple delete - can this be done in any way?  Sure I whack the object that is over there, but something tells me I should be able to (1) live without it (since I have no idea what it is!) or (2) the functionality of the remaining stuff will give me an indication of what was deleted and I'll make a replacement.

 

I have attached a jpeg of the navagation window to give you an idea of just how far away this thing seems to be...

0 Kudos
Message 5 of 11
(4,245 Views)

use CTRL+A to select all the items in the front panel and start deselecting by using the "shift" and the select key by simply clicking on the controls/indicators.

 

Guru

Regards
Guru (CLA)
Message 6 of 11
(4,242 Views)
Solution
Accepted by topic author MJHanagan

Hi MJ,

 

what happens when you select all (Ctrl-A) then align all objects on their right side using the frontpanel menu?

 

If it's a "full" object it will be on screen again (at least should be). If it's only a label (or similar) it may stay over there to the left...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 11
(4,236 Views)

LV uses I16 values to determine the position of objects on the FP. This means that if the object go over a certain number you can run into some bugs like this. You can try something like the following piece of code to fix this, but I don't know if it will work.

 

Example_VI_BD.png


___________________
Try to take over the world!
Message 8 of 11
(4,223 Views)

Ah ha, the "select all then align" process worked!  When I first did this it aligned all of the stuff to the mysterious object to the far left and again, I couldn't get over there without crashing LabVIEW.  So what I did next was put a new object on the front panel (and forced itto the front thinking this would be the focus for the subsequent alignment) and then did the select all and align to the right.  Everything got shifted over (making a big mess which I am sorting out now), but it solved the highly annoying session crashing problem!

 

Many thanks for all of your suggestions!

0 Kudos
Message 9 of 11
(4,203 Views)

I'm curious as to whether Tst's method would work.

 

But what you could do is do a select All, Deselect as many objects as you can on the front panel, leave one onscreen object in the selection set.  Then do an Align right.  That should align the lost object with the one onscreen one you have selected and leave the others alone.  If you aren't able to deselect nearly all of the objects , then at least you'll have less to move back where they belong.

 

The reason Align left didn't work is because Align Left aligns things with the leftmost object (in your case the lost one).  Align right aligns them with the rightmost object, which is a good onscreen one.

Message 10 of 11
(4,190 Views)