Jump to content

Getting className of an IVI I/O control


Recommended Posts

I'm trying to figure out how to get the className of an IVI I/O control. See the enclosed picture that shows the variant value I get when I use a CTL property node to return the value.

Download File:post-2786-1222711224.bmp

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.

Any ideas on how to return this name?

George

Link to comment

QUOTE (Ton @ Sep 30 2008, 07:11 AM)

Unfortunately I couldn't load the probe because I don't have OpenG. But I was able to navigate to the Refnum case in your browse variant VI and saw where you use the Variant to Data VI with a Generic type that feeds a property node that gets the ClassName. That's pretty much what I had tried before and didn't work. I've also tried all the NI Variant tools.

I've inlcuded a quick and dirty VI in case someone has time to look at it. Forget about how I get the variant value (it simulates how I do it in my real VI). I generated the Variant value and then made it a control to make it easier to use. The VI wouldn't work if you don't have the PXI hardware (or have it simulated).

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.

Download File:post-2786-1222782130.vi

George

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.