LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert variant data to specific data type using typedef control reference


@aRCo wrote:

wiebe@CARYA wrote:

Use To G Data to convert it to the type def of the control.


Do you mean this? If yes it seems to be available only for NXG..


Sorry, just the regular Variant To Data.

0 Kudos
Message 11 of 12
(673 Views)

There are two options:

 

1) The data is always the same type.

No problem.

 

2) The data is not always the same type.

Use a variant (which you get automatically)

 

You seem to be stuck in the middle. You do know the data type, but you don't want to use it? If you know the data type, a (copy of) the type def would be the "solution". If not, you need to live with the variant.

 

If the data doesn't\shouldn't\won't change, what is wrong with a copy? If it does change, you can't use a fixed type.

0 Kudos
Message 12 of 12
(671 Views)