LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1055 occurred at To More Specific Class

I have read a bunch of postings on this topic, but I haven't found anything to solve my problem. Picture 1 shows a reference to a boolean control connected to a control refnum on a sub vi.  Pic 2 shows the control refnum being passed to down to another sub vi.  I want to change the boolean text from this sub vi.  In picture 3 I tried to cast this reference to a more specific class (boolean).  This casting allows me to have "BoolText.Text" as a selection in my property node.  On execution I get the error.  If I try to wire the reference directly to the property node, "BoolText.Text" is no longer an available property to set.  Is it possible to change the boolean text from a sub vi?

 

 

Jim

LV 2020
0 Kudos
Message 1 of 7
(3,658 Views)

Your control called "Ctl Refnum" is not of boolean type it is of "control" type (an ancestor of boolean), right clic on it, go to "select VI Server Class and navigate to select the boolean class, which is a descendant of the Control class, then you will be able to re-select the boolean text attribute.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 7
(3,653 Views)

Hi TiTou.  I'm afraid that did not help.  I changed them in both sub VIs, but still the same error.  I just noticed that I have a coercion dot where I connect the reference in the top level VI to the Bool Refnum control on the sub VI.  Could that be a clue?

Jim

LV 2020
Download All
0 Kudos
Message 3 of 7
(3,645 Views)

I don't think, when you create a reference on a specific control (your boolean "comm status" in this case), the reference is strict reference, that means it's linked to a specific boolean control (Comm Status here), if you want to avoid that coersion dot you need to use a "to more specific" primitive and cast the ref to a bool reference, this will just make your reference boolean generic instead of strict, but this is really not necesary to do it explicitely.

 

In you subVI, if you actually have a bool refnum control then maybe you just have to reselect the "bool text:text" property to het it to work.

 

Really your not far from getting it to work.

 

Hope this helps


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 7
(3,632 Views)

That got rid of the coercion, but I am still getting error 1055.  I'll keep messing around.  It has to be something minor, but I just can't nail it.

Jim

LV 2020
0 Kudos
Message 5 of 7
(3,625 Views)

1055 means the reference is invalid, can you show your code? maybe upload your VIs?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 7
(3,621 Views)

As I suspected, it was something stupid on my part.  I was mistaken about which instance of my sub VI was throwing the error.  I had not wired the reference to the one that was actually erroring.

 

Thanks for your assistance.

Jim

LV 2020
0 Kudos
Message 7 of 7
(3,594 Views)