LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in Draw Multiple Lines ?

Hi everybody,


I have a little problem drawing multiple lines that from me looks like a bug.

 

When I use "Draw Multiple Lines" with whith grater than 1, at the end of last vertical segment some anomalous pixels appear.
The same problem appears also drawing a single vertical segment (two points).

If the last segment for a multiple line is horizzontal, the subVI "Draw Multiple Lines" works ok.

Is it a known bug?

I've attached a simple example to better explain the found problem.

When you launch the VI, some lines with differents widths are drawn; the little black filled circles are the start point of lines, big circles show bad pixels.

 

Best Regards

 

Franco

 

Draw Lines.png

0 Kudos
Message 1 of 7
(3,490 Views)

This may be a video driver effect. I do not see anything like that on my Mac. Note that the thick lines are rectangular with square ends and no offsets.

 

Multiple lines.png

 

It seems that you may be doing some unnecessary data manipulations.  You add one scalar to one element of a cluster and then add that cluster to the entire array.  Following that you index out the same array elements on every iteration. Why not move the array index operations outside the loop since they never change and add the scalars inside the loop?

 

Lynn

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

Hi Lynn,

 

the picture you've posted is much better than mine. Also circles are better.

 

My picture is made with a PC win7 1280x1024 resolution. Your Mac could have a better resolution...

 

Surely the result that you got exactly what I expected.

 

So, just to do a verify, I gently ask to other  windows users if they found the same problem.

 

If Yes, I would like if NI LabVIEW's Developers can take care of this problem.

 

Thanks in advance, and Thank You Lynn for your support.

 

Franco

0 Kudos
Message 3 of 7
(3,416 Views)

Lynn

 

The VI that I had made only in order to highlight the issues.

 

Surely the code can be improved, but it is not this that creates the problem.

 

Anyway thanks!

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

Yes.  I got the same problem on my Win7.

 

This is a Line End issue.  You can define Round, Flat, etc. in Windows API.

LabVIEW doesn't expose that option to us.

Picture control is tooooo old.

 

 

 

George Zou
0 Kudos
Message 5 of 7
(3,395 Views)

This is a very strange "line end" issue. Why this is not present in horizontal lines?

We will apreciate a solution by National Instruments developers...

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

franco.atzeni@terna.it wrote:

This is a very strange "line end" issue. Why this is not present in horizontal lines?

We will apreciate a solution by National Instruments developers...


You should submit it as a bug to NI (through NI support), they will check if they can replicate the problem and then issue a Corrective Action Request (CAR) number which you can use to track if/when it gets fixed in a future LabVIEW version. You should post the number here so others can find it. It's not guaranteed that NI Support or R&D will read these threads.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 7 of 7
(3,345 Views)