08-20-2013 05:03 PM - edited 08-20-2013 05:12 PM
So, this kind of relates to my other post here. I'm just full of questions today (although this isn't as fun as the last one)!
I am trying to validate if two child objects can be grouped together, based on some conditions in their private data. So, I would like to have a "checkIfValid" method in the parent class that has both the settings must override and must call parent method.
However, I am running into problems because the connector panes must match. The following VI gives me a broken run arrow. Is there any way to implement what I want? A picture is worth a thousand words so here you go. Is there any way for me to do this comparison, while using DD to force the call parent method?
08-21-2013 03:04 AM
Why don't the connector panes match? It seems like they should. Does it have to do with the data type of the class? If yes, then maybe you can use the parent type in the child class VI and then down cast inside the VI?
08-21-2013 10:11 AM - edited 08-21-2013 10:11 AM
Yes, the parent class has two parent types on the connector pane, the child class would have two child types (one being the DD terminal so that ones OK; it's the other that's the problem). I can use to more specific, I was just curious if there was a way to avoid any potential run time errors (i.e. a different child class of the same base class being input so the cast fails)