02-14-2014 01:58 PM
Does anyone know how to toggle the visibility of the Front Panel alignment grid programmatically?
There have been a few discussions/ideas on this topic but it seems that although there is not a direct property or invoke node to do this, we have access to LabVIEW's global data for an application instance.
Here's what I've found so far...
The token in the LabVIEW.ini file to turn off the front panel grid is "SnapGridSnapsOnFrontPanel=False" & "SnapGridShowsOnFrontPanel=False", this only initializes an application instance global variable when LabVIEW starts, after which this global is managed internally in LabVIEW.
There are hidden invoke & property nodes to Get/Set global data within the application instance, two commonly used methods are "App:GlobalData:Set" and "App:Tag:Set"
This is more a question for the LabVIEW guru's:
What is the name of the global variable to show/hide the front panel alignment grid? (same as going to "Options... > Front Panel > Show front panel grid")
Is it possible to set this variable programmatically using the hidden methods?
Thanks,
Ryan
02-14-2014 02:45 PM
I never built a way to do that when I built the grid. There is no way to do it that I know of. That variable is not part of the tag data.
02-14-2014 04:27 PM
Is there a method that would reload the LabVIEW.ini settings into LabVIEW?
02-14-2014 04:37 PM
There are ways to shut down LabVIEW and have it relaunch, but other than that, no.
02-14-2014 05:35 PM
Thanks for the reply, we'll just have to wait for this feature.