LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When permissible not to wire data type of Variant to Data?

Solved!
Go to solution
In some VIs, the data type terminal of the Variant to Data function is not wired.  When it is permissible or advisable to leave the data type terminal unwired?  Thanks.
Wayne
0 Kudos
Message 1 of 4
(2,751 Views)
Solution
Accepted by topic author Wayne_B.
When the data type of the data sink of the wire (its destination) is well defined, LabVIEW does backward type definition of the output of Variant to Data. It doesn't work on polymorphic inputs of functions and borders of structures, etc. It is generally harmless to let the type unwired in most circumstances but do not forget that you let LabVIEW decide for you how to convert data.

Moreover, if you put the following line in your labview.ini file:

coerceFromVariant=TRUE

you'll be able to connect the variant directly to the sink, without Variant to Data (and its error handling).



LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 4
(2,748 Views)

In my Vi's , i can't connect variant to sink..Please let me know if you know that..

 

Regards

Saleh

0 Kudos
Message 3 of 4
(2,495 Views)

Thanks for your help.  My post is an old one, but I'm always glad for the information.  Wayne

0 Kudos
Message 4 of 4
(2,485 Views)