LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Create Plugin for Labview Application .

Hi All,

 

how to create a labview plugin kind of express Vi ,

 

May be my question is wrong . but i am expecting . 

 

kind of large vis into one single bundle .

 

0 Kudos
Message 1 of 6
(3,379 Views)

Are you talking about a... subVI? You can set the inputs and outputs of a subVI for customization and all the code is bundled inside the subVI.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 6
(3,371 Views)

Hi James.Morris,

 

KIND OF EXPRESS VI . 

 

 

0 Kudos
Message 3 of 6
(3,353 Views)

THIS SHOULD HELP

 

Burt it's much easier to just create a subVI with required inputs. Why go through all the trouble to create a pretty user interface that only the developer sees? Express VIs are nice, but they're meant for newbies to stumble through some simple coding.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 6
(3,337 Views)

HI James.Morris,

 

okay james ,

 

i am going to create Motion Library for my project .

 

Here GOTO.vi and MOVE.vi are the Same Vis BUT THE HARWARE PART WILL CHANGE .

 

How to Create plugin for those kind of Situations . 

 

Do I need to Use OOP ? (I am totally confused with How to use OOP FOR LARGE APPLCATION)

 

0 Kudos
Message 5 of 6
(3,320 Views)

Don't dive in to OOP until after you've been using LabVIEW for a while. It's never really needed for anything, but it makes some stuff easier and more modular once you know what you're doing.

 

You could solve what you're doing by just using an Enum that includes an item for each piece of hardware that you want to use. Have a case structture somewhere that runs the corresponding code when that enum value is changed.

 

The OOP version of this is to use a parent "Motion Hardware" class that has child classes for the different hardware types ad uses dynamic dispatch VIs to control which piece of hardware code to use. But like I said, this is for developers who know more what they're doing with LV and have the time to experiment a bit before coding at least.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Message 6 of 6
(3,273 Views)