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
(938 Views)

There's no law that things are possible.

 

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

 

0 Kudos
Message 2 of 7
(932 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
(926 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
(906 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
(885 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
(872 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
(860 Views)