02-03-2023 08:56 AM
So search the internet and you can find plenty of forum questions regarding setting the origin of the Front Panel.
I remember doing this years ago and it worked exactly as desired. Moves the dot of the Front Panel to the top left corner.
I watched a video of someone doing this and sure enough, moves it to the top left. As a cherry on top, the demonstrator in the video presses their control stop (as in not abort execution) and the Front Panel remains in place.
I implement this now in LabVIEW 2020... press my control stop... and the Front Panel returns to its undesired location.... why? Did something change in LabVIEW versions?
I noticed in one of the forum questions during my internet browsing that there were these "execute undos" or something. Is that necessary now? I'm not even sure what that is.
Help please.
Solved! Go to Solution.
02-03-2023 09:46 AM
There is "menu...edit...adjust pane origin", which will move the crosshair to the upper left edge.
There is also the runtime position setting in vi properties that can do it automatically when you check the checkbox. This will return to the old origin when the VI goes back to edit mode, so it is important to do the first step.
02-03-2023 10:51 AM
@altenbach wrote:
There is "menu...edit...adjust pane origin", which will move the crosshair to the upper left edge.
There is also the runtime position setting in vi properties that can do it automatically when you check the checkbox. This will return to the old origin when the VI goes back to edit mode, so it is important to do the first step.
Couple of notes:
Adjust Pane Origin sets the Origin to my current position - great thing to know, but does not return my FP to the already existing origin
The Checkbox you're referring to seems to do exactly what the snippet of code does above and.... it does the exact same thing after you press the controlled stop. Returns your Front Panel to wherever it was before you executed the code.
Before:
During:
After:
Am I missing something?
02-03-2023 10:54 AM
I'm trying to get the Front Panel to adjust permanently for development - not just during run time
02-03-2023 11:00 AM - edited 02-03-2023 11:01 AM
@DailyDose wrote:
I'm trying to get the Front Panel to adjust permanently for development - not just during run time
Pan the front panel (using the tool palette... hand) the way you want it, the do the "adjust pane origin."
(Of course this does not prevent you from scrolling to a different place later.... I typically have the origin elsehwere so I can place some notes in the margins during development, but the run time window checkbox will fix it during run)
02-03-2023 11:17 AM
@altenbach wrote:
@DailyDose wrote:
I'm trying to get the Front Panel to adjust permanently for development - not just during run time
Pan the front panel (using the tool palette... hand) the way you want it, the do the "adjust pane origin."
(Of course this does not prevent you from scrolling to a different place later.... I typically have the origin elsehwere so I can place some notes in the margins during development, but the run time window checkbox will fix it during run)
Not sure I'm explaining properly. Let's say I'm coding. And I throw down a control on the block diagram. And I double click said control to view it and move it on the FP. But the FP of course moves to wherever the control is and sometimes to the extreme where I don't even know what direction the origin is. So, I'd like to be able to click a button (in this instance I was thinking I'd just put it in the code to programmatically reset to origin, so the play button) and wahlah, I'm back to origin. But what keeps happening, the FP returns to wherever it was when the code stops... Which was oblivion.
Is there a way to reset to origin without having to drag the FP around to find it and keep it there?
02-03-2023 11:18 AM
@DailyDose wrote:
I'm trying to get the Front Panel to adjust permanently for development - not just during run time
Ctrl+Space Ctrl+o (Quick Drop Plugin: Reset Origin)
02-03-2023 12:06 PM
@crossrulz wrote:
@DailyDose wrote:
I'm trying to get the Front Panel to adjust permanently for development - not just during run time
Ctrl+Space Ctrl+o (Quick Drop Plugin: Reset Origin)
That is exactly what I was looking for.
Thank you!