09-24-2008 09:28 AM
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner
09-24-2008 09:43 AM
As far as I know there's no direct way of doing this, but I'm only working in 8.2, so I don't know if the situation has changed in 8.6. You can, however, use property nodes to get the owning VI from the control reference, and then from that get the front panel object, and then from that get the panes[ ] array, and then for each pane get the list of controls, and then for each control you can see if the label matches your control's label. If so, you've got your pane.
If someone knows of a slicker way I'd love to hear it.
09-24-2008 10:01 AM
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner
09-24-2008 10:10 AM
09-24-2008 01:05 PM - edited 09-24-2008 01:06 PM
See the attached example: (LV 8.5)
Move the controls and indicators named in the enum between the two panes and run; it will return a reference to the pane the control is in...
09-24-2008 01:36 PM
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner
09-24-2008 11:26 PM
Hi Philip,
Your GObj >> Obj Highlight method is throwing out error in my PC. When I click on that invoke node, it does not show that method at all.
What caould be the reason? Is it a private method?
09-25-2008 02:05 AM
09-25-2008 08:37 AM
Another attempt is found here
It doesn't account for tabs or clusters.
But here (in sourceforge) is a version that accounts for those obscure facts.
Ton