LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
JICR

Default Value for the In Place Get/Replace Variant Attribute

Status: New

To my surprise there's no type specifier on the In Place Get/Replace Variant Attribute.

 

I post it as an idea even if I'm sure there's a good explanation about it. I would find it convenient if the Get Attribute type would match the one Set.

 

Is it because the new value could be of any other type? At least on the left side, if we could just specify the type as the regular Get Attribute it would be nice.

 

JICR_1-1583872024126.png

JICR_2-1583873251354.png

 

 

 

1 Comment
AristosQueue (NI)
NI Employee (retired)

In order to handle it truly in place, we don't shift the data type. A type parameter would necessitate an error cluster terminal, which is a potential allocation when populating the error, which would rule this node out of some real-time operations.

 

A second IPE node nested inside allows you to do the type access.

 

We could probably clean this up, but at this point, most of the heavy use cases for variant attributes are better handled with a map wire. Not all, by any means, but most.