Jump to content


Photo
- - - - -

dropping a reference of a control terminal on the block diagramm


  • Please log in to reply
1 reply to this topic

#1 Fredxxx

Fredxxx

    Active

  • Members
  • Pip
  • 11 posts
  • Version:LabVIEW 2009
  • Since:2009

Posted 13 July 2011 - 07:29 AM

Hey everybody,
i have a little problem here. On my block diagram i have a numeric control terminal . I want to drop a VI Server reference and a digital numeric Refnum form my existing control on the block diagram.
I already tested around with the "New VI Object" Node, but figured out, that it`s not that easy
Thanks in advance.
Fred

Scripting_Example.PNG

#2 Yair

Yair

    Extwemely Active

  • Members
  • PipPipPipPipPipPip
  • 2,644 posts
  • Version:LabVIEW 2009
  • Since:2003

Posted 13 July 2011 - 12:08 PM

For the reference, use the terminal's reference to get a reference to its control (available as a property), then call the Create Reference method on that control.

For the constant, you should be able to use the New VI Object primitive to drop a Class Specifier Constant, which you can then configure using its Type property, which accepts the name of the class (although I don't think that will get you the strict reference which you seem to want). The class is in GObject>Constant>Refnum.