> I'm interested in extending the functionality
> of Variant to Data, such as using it or not based
> on an additional input. Clearly, LabVIEW will not
> allow this with the current design.
I do not see what you mean by "using it or not based on an additional input". What would the output of this function be, if it were "not used"? What exactly are you trying to do?
Personally, I have long wanted a polymorphic data type. If a polymorphic control were connected to a VI's connector pane, it would be defined by the calling VI. Once a calling VI wired a data-type to a polymorphic input of a subVI the type would propogate into the subVI.
> As to the existing documentation on the type data
> returned by Flatten to String, I find it
rather
> incomplete.
With the release of LabVIEW 7, NI has updated App Note 154 to include some more data types (and subtypes). If you haven't seen this, I suggest you take a look.
> I have created many types that cannot be decoded
> using the available documentation. This alone,
> makes an analytical solution difficult.
Do you mean compound data types like clusters and arrays? Almost all data types can be decoded just fine with the available documentation. The only types that are not very straight-forward are the waveform data type, refnums, and typedefs. If you give me an example, perhaps I can help.
> Adding
> LabVIEW version dependency really makes this
> solution fragile.
I don't agree. LabVIEW may add new types in new versions of LabVIEW, but fundamentally the typecodes and structure of flattened LabVIEW data types have not changed at all (even though NI does reserve the right to change this in future releases of LabVIEW). Do have specific examples of t
his?
Cheers,
-Jim