LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you probe objects to see if class data has been populated in a child method?

Solved!
Go to solution

Question,

 

If a parent method is cast down to a child class, and then a method is used to update some of the data in the class data, can that data be seen with a probe on the outgoing object wire? Or is the data seen the data in the parent class data and not the child?

 

I have an issue where the parent class is executed instead of the child class and I can't figure out why...

 

 

thanks for any ideas.

 

 

0 Kudos
Message 1 of 4
(2,762 Views)
Solution
Accepted by topic author plyons.gks

I'm not sure if I know specifically what you're asking, but maybe this will help.

 

class probes.png

 

The default probes will show you the data that makes up the type of the wire.  So, for children classes it shows the childs data and any ancestor data.  

 

If it's a top level class wire it will only show the data for the parent class, but will inform you of the actual type of the wire, since we know children can pass as their parents.

 

 

Now, I think what you're asking is if it's possible to see the childrens data, on a parent's wire.  I'm not sure, but you may be able to make custom probes to show you more information based on actual type.  

--
Tim Elsey
Certified LabVIEW Architect
Message 2 of 4
(2,754 Views)

@PatLyons wrote:

 

I have an issue where the parent class is executed instead of the child class and I can't figure out why... 


Regarding your actual issue, I would start by checking the class terminals on the connector pane to make sure they are set for dynamic dispatching.

--
Tim Elsey
Certified LabVIEW Architect
Message 3 of 4
(2,747 Views)

Kudos to you sir, thanks for the info, this helps me narrow down my issue.  

 

Thanks again

0 Kudos
Message 4 of 4
(2,746 Views)