LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding control type from control reference

Sorry about missing the attachment. Try again.

Lynn
0 Kudos
Message 11 of 16
(898 Views)
Thanks a lot for the trouble, johnsold!
0 Kudos
Message 12 of 16
(890 Views)
I am late to the party, but have a bit of useful info for you.

The ClassID property should be an invariant with LabVIEW version.  ClassName is another property that gives you the same information, but has been known to change from LabVIEW version to LabVIEW version.  Use ClassID if you go this route.

Another option is to use the GetType utilities buried in vi.lib.  In LabVIEW 8.2, they can be found in <vi.lib>\Utility\GetType.llb\...  These were created to make it easier to solve the issue you are currently facing.  They have not been exported to the palette, so there are no guarantees they will keep their current interface (it is still the same in LabVIEW 8.6) and quality may be below our normal standards, although I have had no problems with them.
Message 13 of 16
(894 Views)

Thanks DFGray,

I didn't know about that utility.  I will check it out.

R

0 Kudos
Message 14 of 16
(884 Views)
OpenG has similar functions in the Data Tools library. One VI provides an enumeration output for the various datatypes.
0 Kudos
Message 15 of 16
(866 Views)
C. DOT,

I did not thnk it was any trouble until I clicked the Back arrow after posting that example. Then my hard drive crashed.

I have posted hundreds of times without crashing a hard drive, so I really do not think the posting had anything to with the crash.

Currently using an old, slow, computer in the lab.

Lynn
0 Kudos
Message 16 of 16
(844 Views)