10-01-2008 10:18 AM
I'm trying to figure out how to get the className of an IVI I/O
control. See the enclosed VI that shows the variant value I get
when I use a CTL property node to return the value.
The
variant value shows the className that I'm trying to retrieve (in this
case niDCPower). This className is what shows up if you right click on
an IVI I/O control and then select Select IVI Class.
I tried converting to an XML string, but that doesn't return the value I need. I've also tried all the NI Variant tools.
Any ideas on how to return this name?
It bugs me that I can see the className right there in the variant value control, but can't figure out how to extract it. Any ideas would be welcome.
George
10-02-2008 06:12 PM
Hi,
You might be able to use a Flatten to String and parse the class name from there.
10-03-2008 07:33 AM
Well, Flatten to String kind of works. The word I'm looking for is in there, but unless I knew what I was looking for I don't know how I'd pick it out of the mess of gobbly gook that surrounds it. The variant indicator has this wording
className=niDCPower
But the Flatten to String to string output only has the niDCPower part. Looking at the output as '\' codes gives this:
\b`\80\01\00\00\00\02\00\1E\007\FF\FF\FF\FF\00\03\b`\80\01\00\00\00\01\00\04\00\00\00\01\00\00\00\00\00\00\00<@p\00\0F\tniDCPower\00\01\00\00\00\00\b`\80\01\00\00\00\01\00\04\00\00\00\01\00\00\00\00\00\00\10IVI\sLogical\sName\00\00\01\00\01\00\00\00\tPXI1Slot5\00\00\00\00Which doesn't seem to help much either. Any other ideas?
10-06-2008 02:46 PM
10-06-2008 02:58 PM
Jeremy,
What kind of indicator did you create?
There has to be some way to extract the data. Somehow it exists in the variant so there must be a way to get it out.
10-06-2008 05:13 PM
10-07-2008 07:20 AM
>Doesn't the Text.Text property return what you want?<
Could you be more specific please? I don't know of any "Text.Text" property.
George
10-08-2008 10:12 AM
Hi,
I just right clicked off the Value property and created an indicator. How did you create the indicator?
10-08-2008 10:27 AM
I did the same thing to create the indicator. Then I right clicked on the indicator and checked "Show type".
You asked if the "Text.Text" property gave what I wanted. I still don't know what you mean. There is no "Text.Text" property.
George
10-08-2008 12:35 PM
hi there
can you please post as 8.5 or a screen shot?