From: <Dou...@mk...> - 2005-06-10 13:30:08
|
Jean-Pierre, using Variant to Data to convert a cluster to an array of variants does not work in LabVIEW 6.1; the array of variants that is returned is empty. I also tried converting an array of variants to a cluster (see below). One can use Variant to Data (in LabVIEW 7.1x) only if the original cluster can be converted to an array. First I tried wiring the array of variants to the "Variant" connector and the original cluster used to generate the array of variants to the "type" connector, but LabVIEW did not like that. If the original cluster can be converted to an array, though, converting the cluster to an array and then wiring that to the "Type" connector is something LabVIEW will accept, the resulting array being convertible back to a cluster. Code well and prosper! Doug (Embedded image moved to file: pic11777.pcx) |---------+---------------------------------------------------> | | Jean-Pierre Drolet | | | <jea...@tr...> | | | Sent by: | | | ope...@li...ur| | | ceforge.net | | | | | | | | | 06/09/2005 10:17 PM | | | Please respond to | | | opengtoolkit-developers | | | | |---------+---------------------------------------------------> >----------------------------------------------------------------------------------------------| | | | To: ope...@li... | | cc: | | Subject: Cluster to array of variants | >----------------------------------------------------------------------------------------------| Hi, I have just found in LV7.1 that you can convert a cluster to an array of variants simply using Variant to Data. That is probably much more efficient than the way it is actually done in lvdata, e.g. parsing thru flat data and TD. Can someone check if it is doable in LV6 (version used to develop lvdata)? I did not figure yet if there is an easier way to convert an array of variants to a cluster. Jean-Pierre ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ OpenGToolkit-Developers mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/opengtoolkit-developers This e-mail is intended solely for the person or entity to which it is addressed and may contain confidential information. Any review, dissemination, copying, printing or other use of this e-mail by persons or entities other than the addressee is prohibited. If you have received this e-mail in error, please contact the sender immediately and delete the material from any computer. |