LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Inconsistent Type Definition in Picture VIs

Sometimes NI doesn't follow their own recommendations.

For instance making common structures/parameters type definition.

 

My example today is taken from the Picture Functions palette:

 

Screen Shot 2015-05-16 at 15.28.05.png

 

As I was revisiting some old VIs of mine, I found a funny looking icon with a red cross (Draw Rect.vi). This turned out to be a deprecated VI, now replaced by Draw Rectangle.vi.

Replacing it was painless, but I noticed a coertion dot on my nearby Draw Oval,vi input and, looking into it, I realized that the "pen" cluster (the constants shown on the figure above) had different "Width" types.

Since all these functions call Set Pen State.vi, which uses a U16 Width, it would make sense to have all widths of that type. However, for rectangles, the old and new functions use a I16 Width parameter (within the "Pen" cluster).

They appear to be the only one to use this version of the Pen cluseter. In particular, the Draw Round Rect.vi does use the U16 type.

 

Tested in LV 2013 SP1 64 bits

 

Message 1 of 2
(3,088 Views)
And you know what I would like for the forum to have? The ability to turn off being bothered by posters who typically have little or nothing substantive to add to the overall conversation, preferring instead to bombard us with nonsensical complains that make no difference what so ever. Things like:

Ohh, NI made a mistake on a typedef
Or, I don't like the way wires come out of this function
Or, I don't like where LabVIEW puts probe bubbles on a wire
Or, LabVIEW doesn't size cluster contants on block diagrams right sometimes

And that's just so far in May!

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 2
(3,069 Views)