08-28-2017 07:05 AM
@crossrulz wrote:
Your class GUI VI does not hav to be called directly from your main application. It could be ran dynamically in a new thread and your objects send messages via queues or user events. It could even be the processing VI.
Please check this Desktop\Telecom.exercise\Trial_Applications\New folder\App_oop.vi is the below project file..
As I have tried the usage within the application as you have explained and as I have understood!!
08-28-2017 07:17 AM
You provided a path, but, sadly, no attached file.
08-28-2017 10:56 AM
yup.. here's the File...
08-28-2017 11:58 PM
http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/oop_in_lv/
Classes represents general traits that item share and objects are actually behaviors of our class (of how and what it is designed/capable to do)
There are 4 pillars of OOP's:
08-29-2017 12:01 AM
I have attached the file..
can anyone of the Gem's look over it for procedure corrections, if should be made.
@PriyadarsiniS wrote:
yup.. here's the File...
08-29-2017 12:11 AM
Do you have a specific question?
08-29-2017 04:49 AM
@altenbach wrote:
Do you have a specific question?
yup .. actually, I was looking for a solution where my Derived class data can also be shown on the Abstract layer i.e., User interface, without making them appear straight from the root class (as it can be already done with help of Main-vi).
Now my application involves showing all the abstracted layers data along with leaf classes data that was processed due to user actions.
Am in need for a proper procedure to do this..
08-29-2017 05:44 AM
As I said before, make the class insert itself into the subpanel. This way, you can have an override method so that the child can put in whatever front panel it wants.
08-29-2017 06:31 AM
@crossrulz wrote:
As I said before, make the class insert itself into the subpanel.
yup.. I followed it but still, the code I have integrated is with respect to the Devices selected
and there order of path provided inside this Application.
I have taken the NI: example of examples\Controls and Indicators\Containers\Multiple VIs in a Subpanel.vi
and Am not sure, if that method is correct for big applications.
08-29-2017 07:41 AM
@PriyadarsiniS wrote:
yup.. I followed it but still, the code I have integrated is with respect to the Devices selected
and there order of path provided inside this Application.
Absolute paths should NEVER be coded in an application. You are using the class constants to initialize the objects. Now let the objects find their own GUI VI using their own logical name (Class.lvclass:GUI.vi) and Open VI Reference. You only need that logical name to open the reference.