ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strictly Type Constant Refnum


@raphschru wrote:

@billko wrote:

It might not be possible, since having a strictly typed constant is only enabled by a special flag


Which flag are you talking about ?

The closest I know is "EnableStrictTypedefConstantConfiguration", but this is about typedef'd constants on the diagram, which is different from strictly-typed constant refnums.

 

Out of curiosity, I have tried to merge the type code of a strictly-typed control refnum with the type code of a generic constant refnum, then using "Flattened String To Variant" and "VI.Create from Data Type" to create a chimaera data type that would hypothetically be a strictly-typed constant refnum, but without success. The additional type info added to the constant refnum is simply ignored =(

 

So sadly I think it is not possible

 

I guess you want to set the class of the Affected Items of your plugin to a specific strictly-typed constant to avoid further filtering on the data type ? Is it a matter of performance for the plugin ?


I was wanting to do it just for cleaner block diagrams.

"If you weren't supposed to push it, it wouldn't be a button."
Message 21 of 23
(556 Views)

@pauldavey wrote:

You have a lot more options under "GObject" than I do in my LabVIEW installation. Are you using an LabVIEW ini key?


@paul_cardinale wrote:

paul_cardinale_0-1666027447038.png

 


 


I turn on lots of stuff:

LVdebugKeys=True
UseUnicode="True"
showSystemVIs="True"
EnableStrictTypedefConstantConfiguration="True"
AdvancedPlotLegendMenu="True"
enableSecretPopups="True"
ActiveXMoreContainerOptions="True"
XNodeDevelopment_LabVIEWInternalTag="True"
XNodesDebugging="True"
XNodesEnabled="True"
XNodeWizardMenu="True"
XNodeWizardMode="True"
XTraceXNode="True"
XNodeDebugWindow="True"
SuperPrivateScriptingFeatureVisible="True"
SuperPrivateSpecialStuff="True"
SuperSecretPrivateSpecialStuff="True"
SuperSecretListboxStuff="True"
SuperSecretCLAFeatures="True"

"If you weren't supposed to push it, it wouldn't be a button."
Message 22 of 23
(553 Views)

@paul_cardinale wrote:

I was wanting to do it just for cleaner block diagrams.


Nothing wrong with that.

Message 23 of 23
(520 Views)