LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

variant to string conversion

Although variants are for activeX use, I found their display for complex
cluster mixing various types of data quite handy to store as strings.
Trouble is that I can't get a string conversion mimicking what a variant
indicator displays. Is there an easy way or is it nonsense?
Maybe some focused URLS would help.
Gerard

--
Regards
Gerard D'Ans (gerard.dans@laborelec.be)
Laborelec Rodestraat,125 B-1630 Linkebeek
tel 32 2 382 0568
fax 32 2 282 0241
ULB SMA (gdans@ulb.ac.be)
Blvd F D Roosevelt CP165 B-1050 Brussels
Tel 32 2 650 2515
http://www.ulb.ac.be/polytech/laborulb/index.htm
0 Kudos
Message 1 of 2
(2,564 Views)
If I understand you correctly, you are trying to get the data that is displayed in a variant indicator and translate it into a string. Unfortunately, I don't believe there is an easy way to programmatically do this. You do have a couple of options though.

1) Copy the data in the indicator to the clipboard (Ctrl-C) and then paste the data into a string control (Ctrl-V).

2) Create a vi that replicates what is displayed in the variant. You can access the labels from property nodes and combine all the information into a string using the concatenate string function.
0 Kudos
Message 2 of 2
(2,564 Views)