Jump to content


Photo
- - - - -

LVClass scripting


  • Please log in to reply
2 replies to this topic

#1 mike5

mike5

    Very Active

  • Members
  • PipPipPip
  • 159 posts
  • Location:Slovenia
  • Version:LabVIEW 2010
  • Since:2009

Posted 05 July 2011 - 10:26 AM

Hi all,

I'm working on some VI Scripting stuff for manipulating classes in my projects, but right at the start I'm having problems:

how the heck do I get a refnum to a class, so that I can inspect it using properties and such? I tried with Open VI Reference, but I get Error 1059: Unexpected file type. After that I'd need to check all its members, add some new ones (maybe from a template), all such "basic" stuff :)

I tried searching the net, checked the VI scripting examples, but I just cannot find anything.

if anyone could help, I'd be eternally grateful.

Thanks and br, Mike

Oh yeah, and I'd need to get this from an existing class in file, not create a new one or something dragged on a Block Diagram.

Mike
Close the world, txEn eht nepO.

#2 François Normandin

François Normandin

    Son of Scotland

  • Premium Member
  • 1,081 posts
  • Location:Montréal, QC
  • Version:LabVIEW 2012
  • Since:1999

Posted 05 July 2011 - 12:16 PM

Hi Mike,

there are methods in the Application Invoke Node, named LVClass.Open & LVClass.Create.

LVClass OpenRef.png


Take a look at this palette, it might be useful for you.

François [frɑ̃swa], CLA


#3 mike5

mike5

    Very Active

  • Members
  • PipPipPip
  • 159 posts
  • Location:Slovenia
  • Version:LabVIEW 2010
  • Since:2009

Posted 05 July 2011 - 12:18 PM

Hi Mike,

there are methods in the Application Invoke Node, named LVClass.Open & LVClass.Create.

LVClass OpenRef.png


Take a look at this palette, it might be useful for you.


Excellent! Thanks!

Br, Miha
Close the world, txEn eht nepO.