LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Kosta

Programmatic Control of Grid Alignment Properties

Status: Completed

Available in LabVIEW 2019. There are two new properties of the VI class: Block Diagram Window:Alignment Grid Size and Front Panel Window:Alignment Grid Size.

I am not happy when I inherit legacy code where VIs have inconsistent alignment grid options, as shown in the image below.Inconsistent Alignment Grids.jpg

 

My team has coding standards we follow, and those standards include alignment grid options. It is labor-intensive to change alignment grid options on legacy VIs because you have to do it by hand, and clicks quickly add up. I wish I could automate such changes.

 

I’d like to see a few new properties to expose settings available in the editor, as shown below.Alignment Grid Property Nodes.jpg

These properties need to support both read and write.

Kosta
23 Comments
wiebe@CARYA
Knight of NI

I'll just repeat this, as it seems to be ignored:

 

As an alternative, NI could let us in on how the options dialog does this.

 

That dialog is mostly VIs at work (calling it and handling the results is not, AFAIK), so there is a change it can be done already. It's just that we don't get to see all pieces of the puzzle.

The options dialog are normal VIs, with (pw protected) diagrams. The NI VIs can set these properties, and so could we, probably.

Spoiler
If we knew how to work the VI tagsets\propertybags… And if we had access to them. They might be provided by LabVIEW calling the dialog...

Just saying that in stead of adding two properties, it might be easier for everyone to just provide the information...

AristosQueue (NI)
NI Employee (retired)

The settings for grid size on VI for are not in the Tools>>Options dialog. They are in VI Properties dialog. And the original post mistakenly thought grid enable/disable was a per VI setting. The Tools >> Options discussion is irrelevant to this thread.

wiebe@CARYA
Knight of NI

@AQ: Ah, thanks for clearing that up. So +1 for adding properties for that.

 

Isn't the Tools>Options discussion still relevant for setting the grid enable/disable  (Show front panel grid) option?

AristosQueue (NI)
NI Employee (retired)

It may be a valid idea, but it is off-topic here.

Darren
Proven Zealot
Status changed to: In Development
 
Kosta
Member

I was only interested in VI properties. Most settings from Tools > Options are stored in LabVIEW.ini file, and you can programmatically control that file using VIs mentioned on slide linked from this page - search for lvconfig.llb.

 

Kosta
Kosta
Member

I am delighted by the status change to "in development"!

Kosta
wiebe@CARYA
Knight of NI

>It may be a valid idea, but it is off-topic here.

 

It's an alternative solution to the proposed solution for enabling the grid. Providing a VI i.s.o. a new property might be easier. Something we could have right now, i.s.o. in LabVIEW 202x.

AristosQueue (NI)
NI Employee (retired)

You're missing the point. I can't think of any way to explain any more than I have. So I'll simply end with "No."

raphschru
Active Participant