LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlID to specific class

Solved!
Go to solution

Hello again.

 

Here's what I'm trying to do now.

  I have figured out how to get the class id of my referenced control but I would like to be able to change my variant value to the type specified by the classID so I don't get variant mark ups in my XML file. And of course I would like to be able to do the opposite functionality of reading in the data from the XML and passing it back to the controls.

I need to share this xml with other applications so it would be nice to keep the data names but lose the variant tags.

 

Thanx for the support.

Bill

Download All
0 Kudos
Message 1 of 3
(3,566 Views)
Solution
Accepted by topic author punkmonkey

Hi Bill,

 

The LabVIEW Help (Class ID Property) provides a list of what datatype the ClassID corresponds to. You can use this with a case structure to identify the correct data type to send to your Flatten to XML VI. When reading the XML, you need to  provide the datatype for what you're pulling out, so it would be best to keep track of this or to parse the XML file. An example of this part can be found in the Example Finder.

 

Regards,
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
Message 2 of 3
(3,541 Views)
Yep. I found that and got it working.
0 Kudos
Message 3 of 3
(3,537 Views)