03-24-2010 11:25 PM
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
Solved! Go to Solution.
03-24-2010 11:47 PM
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.
03-25-2010 12:33 AM
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
03-25-2010 02:56 AM
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
03-25-2010 06:06 AM
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...
03-25-2010 06:15 AM
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
03-25-2010 06:25 AM
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...
03-25-2010 07:01 AM
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.
03-25-2010 10:15 AM
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!
03-25-2010 11:19 AM
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.