Jump to content


Photo
- - - - -

Class Operator - more information please


  • Please log in to reply
2 replies to this topic

#1 crelf

crelf

    I'm a LAVA, not a fighter.

  • V I Engineering, Inc.
  • 5,742 posts
  • Version:LabVIEW 2012
  • Since:1993

Posted 22 May 2012 - 03:28 PM

Does anyone have any information about the "Class Operator" method? For example: http://zone.ni.com/r...operator058set/ I'm not sure what it does, or how to use it, so any info would be greatly appreciated.

post-181-1170858537.png


#2 Darren

Darren

    Extremely Active

  • NI
  • 398 posts
  • Location:Austin, TX
  • Version:LabVIEW 2012
  • Since:1999

Posted 22 May 2012 - 03:43 PM

I've only ever used Class Operator in conjunction with the Traverse method. You set an operator VI that runs whenever the Traverse method finds an object matching the class name you specify. For my Traverse VIs, the operator VI is very simple...it just adds the found object's reference to an array. I know other people have written their own traversal algorithms that have the operator VI do a lot more stuff when it finds the object.

The following VI is available in LabVIEW 2010 and later...you should be able to dig through it to find out everything I know about the Class Operator and Traverse methods:

<LabVIEW>\vi.lib\Utility\traverseref.llb\Traverse for GObjects.vi

#3 crelf

crelf

    I'm a LAVA, not a fighter.

  • V I Engineering, Inc.
  • 5,742 posts
  • Version:LabVIEW 2012
  • Since:1993

Posted 22 May 2012 - 06:00 PM

So it's almost like a callback? Hmmmm....

post-181-1170858537.png