11-15-2022 10:35 AM
I'd like to initialize several numeric controls at G Web application start time, and preferably retrieve their associated tags from the NI Web Server. I don't see a way to do this (I don't even see a way of initializing the control like the LabView "Make Current Value Default". Is there a way of achieving this? Thank you.
12-06-2022 01:59 AM
01-06-2023 01:59 PM - edited 01-06-2023 02:02 PM
I am not sure about retrieving tags from the NI Web Server, but you can (in G Web, I am running the 2022 version):
Place a numeric control on the Front Panel and change the value to whatever you want the default to be. Then right click the control's border and select, "Make current value default".
On the Block Diagram, place the numeric control on the Block Diagram, right click it and select, "Create reference." Then select and place the "Reinitialize to Default" function. Wire the reference to this function. (The "Reinitialize to Default" function can be found by right clicking on a blank space on the Block Diagram > User Interface > Panel Manipulation). Place this reference + function wherever you want the numeric control to be re-initialized to default - probably before the main loop starts executing.
03-28-2023 11:19 AM
I finally got back to this and I'm not sure how to wire in a tag Read element with the reinitialize and control reference. Is that possible?