05-11-2010 04:00 PM
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.
05-12-2010 11:39 AM
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?
05-12-2010 12:05 PM
05-12-2010 01:13 PM