LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Incompatible numeric controls that appear to be the same.

I have some system numeric controls, specifically "System: Numeric: System Spin Control", which is configured as a Double, 64Bit, ~15bit. In the context help window the 15bit is followed by [???]. When I try and connect the output of this control to a write double accessor in my class (or a double indicator) it results in a broken wire.

 

control type question.pngI haven't seen this before, guess, for one reason, I rarely use System controls.

Whaz Up? I can throw a type cast in, but that seems "ugly", would rather understand what is going on.

Thanks, as always.

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 1 of 8
(3,516 Views)

So, further exploration shows me that doing a 'replace' of the defective controls with a new System Spin Control results in the same issue. If I create a spin control from the palette it is ok, is selectable with all the numeric representations, no ??? in the description. But just replacing the control results, regardless of the numeric type, with it being faulty. I guess somewhere in the last couple of weeks, in trying to customize the original, I broke something. So, make all new controls, flush these "bad" ones. Apparently, some attribute got set, is carried along. Weirdness.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 8
(3,502 Views)

Units?

aputman
Message 3 of 8
(3,486 Views)

Before I sent them to the great bit bucket in the sky, I noticed, when looking at "Visible Items" that it had a entry for units, odd, I don't use units, but I think you are on to they underlying issue. Not sure how they would have been configured, have been revisiting this code for a while now, with a lot of changes, so ...  As I mentioned, I brute forced it, deleted all of those, created new controls.

 

Thanks,

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 8
(3,466 Views)

Yeah, I can recreate the double question mark in the context help that you showed.  I'm not sure why it doesn't show the actual units label, rather than "??". 

 

Does anyone use units, besides the creator of that VI?  Smiley Wink

aputman
0 Kudos
Message 5 of 8
(3,460 Views)

I used units once, to make some calculations less obfuscated.  Of course, what happened was that all the other code became somewhat obfuscated, so go figure...

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 8
(3,455 Views)

There are probably some, though I don't think anyone touched this code other than me. Another "LabVIEW mystery", one of many over the two decades + of living in this environment.

 

Yes, I have made the "mistake" of using units, have always seemed to have made it more difficult for myself rather than less, probably because I stop too soon.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 7 of 8
(3,440 Views)

That DBL ?? is probably set to Polymorphic units. which cannot be determined until the Unit type descriptor From the caller is known.

 

A single ? indicates the Unit Label is syntactically flawed


"Should be" isn't "Is" -Jay
Message 8 of 8
(3,436 Views)