LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variant to Data issue with typedefs in executable

I'm having a problem converting a cluster variant to the typedef cluster.  When run from an executable, the Variant to Data function returns an error 91 when the variant contains a non-typedef version of the same cluster.  

 

Attached is the code that replicates this error.  I'm looking forward to your comments. 

-Derek Roane
0 Kudos
Message 1 of 4
(3,176 Views)

Hello,

 

This is a bug in 2009 and has been filed under Corrective Action Request 192804. We are aware and trying to work on the issue.  A possible work around was to update the variant type by generating a new one. So in an empty VI wire the typedef into the "to variant" prim and run the VI. Then create a constant from the indicator and use this constant as the new type for the variant.

 

Can you see if that works for your application?

 

 

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 2 of 4
(3,145 Views)
I'm not sure that will help very much.  My actual application is loading the contents of an INI file into the variant using some of the tools from the VariantType, and it doesn't seem to retain the typedef information.  I suppose I should just disconnect the INI file cluster from the typedef.
-Derek Roane
0 Kudos
Message 3 of 4
(3,133 Views)
One of the pages in the build configuration (can't remember which, possibly the advanced page) has an option for disconnecting all the typedefs. You can try checking that to see if it will work around the issue.

___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(3,118 Views)