LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subclass in queue element problem

Hi,

 

I have an interesting and unexpected problem that I'm not sure if it might be LabVIEW working as intended or if this might be a real issue.  I'm going to do my best to describe the situation

 

i have a class called settings.lvclass

i have a class called settings child.lvclass which inherits from settings.

 

In my main application I queue up settings.lvclass and throw the queue into a queue manager.vi which performs many functions but regarding this issue it has a control that is a queue with settings.lvclass as the element.  Now i am getting a broken wire when i throw a queue with element settings child.lvclass into that control.  I'm not sure if this is working as intended but I would think that this shouldn't matter since in OOP terminology settings child.lvclass IS A settings.lvclass.

 

Just something i thought either i was doing wrong or possibly the devs might like this brought to their attention.  Anyone have any suggestions on how to possibly work around this without having to make a separate queue manager.vi? 

 

thanks for any help,

 

Brent 

0 Kudos
Message 1 of 3
(2,647 Views)

BrentSchenk wrote:

Hi,

 

I have an interesting and unexpected problem that I'm not sure if it might be LabVIEW working as intended or if this might be a real issue.  I'm going to do my best to describe the situation

 

i have a class called settings.lvclass

i have a class called settings child.lvclass which inherits from settings.

 

In my main application I queue up settings.lvclass and throw the queue into a queue manager.vi which performs many functions but regarding this issue it has a control that is a queue with settings.lvclass as the element.  Now i am getting a broken wire when i throw a queue with element settings child.lvclass into that control.  I'm not sure if this is working as intended but I would think that this shouldn't matter since in OOP terminology settings child.lvclass IS A settings.lvclass.

 

Just something i thought either i was doing wrong or possibly the devs might like this brought to their attention.  Anyone have any suggestions on how to possibly work around this without having to make a separate queue manager.vi? 

 

thanks for any help,

 

Brent 


Please post images so its easier for use to follow you. Without the image I can only venture a guess. have you concidered using the "to more spcific class" to convert the child class wire to it parents type before wiring to the cluster?

 

Just trying to help but not sure how...

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,642 Views)

Brent,

 

I have done just what you are describing without any problems.  You should be able to wire an instance of a child class to a terminal of the parent class type.  Can you please post an example that demonstrates what you are seeing?

 

Chris M 

0 Kudos
Message 3 of 3
(2,621 Views)