From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-10-2015 04:39 PM
I've got a project which runs a vi in a subpanel. There's some automation which causes the vi to load and unload from the subpanel and i want for the user to be able to continue doing whatever he's doing while this happens. Unfortunately, every time the subvi loads into the subpanel, the focus changes.
To reproduce: open the project and run MAIN.vi. run and click the "Loop Enable" button. Then try to edit the "Milliseconds to wait" control. You'll see that the focus shifts away from the control. Is there a way to do this while keeping focus on the control (hopefully without getting reference to the control, letting the subpanel wrench it away, and then shifting focus back to the control. I want to avoid this because it'll change the cursor position)?
12-10-2015 08:25 PM
12-10-2015 08:53 PM
12-11-2015 12:42 AM
12-11-2015 05:44 AM
It behaves the same way regardless of whether the subpanel is enabled or disabled.
12-11-2015 12:22 PM
I also tried disabling every control on the subvi that loads into the subpanel but that didn't change anything.
I ended up using an animation sequence in a picture control inside a parallel loop in the main vi. The block diagram's a little busier now but at least the key focus remains unchanged.
Thanks for trying to help!