キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Using LabView Dynamic dispatching classes

Hello, I am currently investigating using LabView classes along with TestStand 4.2 to create a common functionality for power sources.  The power source used would be named from an ini file and then I need common function calls to take on the form of the software commands for the used power source. 

 

I have read a couple of articles on LabView classes and dynamic members, but I can not see how we determine which data type is used for the members to decide which methods are used.  Does anyone have any referrences to examples to get started or have some easy examples to start with like "area of objects" or something like that?

0 件の賞賛
メッセージ1/4
2,873件の閲覧回数

Hi mcfrenzy36,

 

What version of LabVIEW are you using? TestStand handles LabVIEW object oriented programming very well. I have found some additional articles that might be able to shed some light.

 

https://decibel.ni.com/content/groups/large-labview-application-development/blog/2009/12/14/when-sho...

 

https://www.ni.com/en/support/documentation/supplemental/06/labview-object-oriented-programming-faq....

 

https://forums.ni.com/t5/Example-Code/Applying-Common-Object-Oriented-OO-Design-Patterns-to-LabVIEW/...

 

Perry S.

Applications Engineer
National Instruments
0 件の賞賛
メッセージ2/4
2,848件の閲覧回数

I am using LabView 2009.

0 件の賞賛
メッセージ3/4
2,836件の閲覧回数

Hello mcfrenzy,

 

In addition to the links that Perry provided, here is my favorite example:

https://forums.ni.com/t5/LabVIEW-Development-Best/LabVIEW-3D-Space-Explorer-Game/ta-p/3515235

And some general information about LabVIEW OOP

https://www.ni.com/docs/en-US/bundle/labview/page/labview-object-oriented-programming.html

Cheers!

TJ G
0 件の賞賛
メッセージ4/4
2,821件の閲覧回数