LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about parentclass object to subclass object conversion in LVOOP

I saw an example project, changing an enumeration item in the passed parent object data, the object becomes the corresponding subclass of the enumeration item, how is this implemented (or labview object-oriented has this mechanism)?

The example documents can be found in the annex.

 

 

 

nzywlll80gmailcom_0-1689496058530.png

 

 

 

 
0 Kudos
Message 1 of 5
(573 Views)

In Demo #2, there are no child classes for different brews. Instead, there are different child classes for size.

ZYOng_0-1689531610810.png

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 5
(516 Views)

In the block diagram i have been  post, after the Set Brew method call, the Drink class change to the corresponding Brew class,corresponding.How is this implemented?

0 Kudos
Message 3 of 5
(502 Views)

In the block diagram i have been  post, after the Set Brew method call, the Drink class change to the corresponding Brew class,corresponding.How is this implemented?

0 Kudos
Message 4 of 5
(501 Views)

See the images below. The object is the Drink class until a new instance of Size/Brew class is used to replace the array at the Select Size event.

ZYOng_0-1689549190821.png

ZYOng_1-1689549205793.png

ZYOng_2-1689549215525.png

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 5 of 5
(485 Views)