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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resize Array (of enums) Constant using Scripting

I'm creating an array of enums constant on a block diagram using scripting.

 

When created, this constant isn't wide enough to show all of the enum text.

 

I can't seem to find a property that allows me to resize this constant using scripting.

 

Any suggestions?

0 Kudos
Message 1 of 7
(965 Views)

There's no law that things are possible.

 

In this case, it could be very hard...

 

0 Kudos
Message 2 of 7
(959 Views)

I guess you can save the VI with XML format, parse the VI to get the heap, deflate the heap, modify the XML, put it back in the file, resign the PW hash, and reload the VI...

 

The splitter tool (that changes splitter style) does this.

 

Definitely easier to let it go.

0 Kudos
Message 3 of 7
(953 Views)

This seems to be something easily handled during runtime.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 7
(933 Views)

@billko wrote:

This seems to be something easily handled during runtime.


Yes, which in itself is weird as an enum constant can't be resized.

 

There are no (obvious) scripting stubs to do this.

0 Kudos
Message 5 of 7
(912 Views)

wiebe@CARYA wrote:

@billko wrote:

This seems to be something easily handled during runtime.


Yes, which in itself is weird as an enum constant can't be resized.

 

There are no (obvious) scripting stubs to do this.


Oh, Jeez - TOTALLY misinterpreted the issue.  I thought they were trying to resize the ARRAY, not the ENUM.  😅

 

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(899 Views)

@billko wrote:

wiebe@CARYA wrote:

@billko wrote:

This seems to be something easily handled during runtime.


Yes, which in itself is weird as an enum constant can't be resized.

 

There are no (obvious) scripting stubs to do this.


Oh, Jeez - TOTALLY misinterpreted the issue.  I thought they were trying to resize the ARRAY, not the ENUM.  😅


We never would have known. Both are easily handled during runtime.

0 Kudos
Message 7 of 7
(887 Views)