09-29-2015 10:05 PM
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 .
09-29-2015 10:35 PM
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> ---'
09-29-2015 11:04 PM
09-29-2015 11:42 PM - edited 09-29-2015 11:44 PM
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> ---'
09-30-2015 12:33 AM
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)
09-30-2015 09:03 AM
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> ---'