LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change line thickness in draw line

HI!
I wanted to draw thicker lines in a picture control in LabVIEW 6.1. I found some posts where they mentioned that I have to edit the according VIs. So I played a bit around but didn't get it working. I'll attach pictures of the diagrams of "SetPen.vi","DrawLine.vi" and "DrawMultipleLines.vi". Can anybody tell me what to change or provide a suitable vi? Is there a tutorial where the code and the generation thereof for picture controls is explained?
Download All
0 Kudos
Message 1 of 9
(5,204 Views)
You can code new VI and this your VI draw thicker line by using SetPen.vi and DrawLine.vi.
Input parameter will be start end end point and thicker parameter and your VI draw between start and end point small lines. :-))

good luck
JCC
0 Kudos
Message 2 of 9
(5,204 Views)
Hi JCC,
I came already to that point that I will have to edit the vis or comine some of them to a new one. But still I don't know what I do have to change in order to get a thicker line!
ANDY
0 Kudos
Message 3 of 9
(5,204 Views)
Hi ANDY,
sorry i do not understand to your question.
"Draw Line.vi" have input control 'pen' - you can set up 'Width' of line and line 'Style'.

Do you want have on one line lot of lines with different thicker?
0 Kudos
Message 4 of 9
(5,204 Views)
I do have the LV 6.1! I think your picture is from a different Version because I don't have the PEN Input. Maybe can you post a screenshot of the draw line diagram. Maybe I can figure out what I do have to edit in order to get this done?
Thanks
ANDY
0 Kudos
Message 5 of 9
(5,204 Views)
Hi ANDY,
now I understad, I have LV 7.1 and 6.1 and LV 6.1 do not supported different type of line.

In LV 7.1 in 'Draw Line.vi' use subVI 'Set Pen State.vi'. Look to screenshot

It is working in your LV?
Regard
JCC
0 Kudos
Message 6 of 9
(5,204 Views)
I couldn't get it working. I don't know how the picture control interprets the String after the typecast was done! I think I'll post the question again with the hint that I'm using LV 6.1
Best Regards
ANDY
0 Kudos
Message 7 of 9
(5,204 Views)
Hello AndyBE,

I do not know of a specific method created for increasing the width of a drawn line. However, you can create your own method to build a thicker line by combining multiple lines. Attached is a small example to get you started.

Good luck with development,

Matt F
0 Kudos
Message 8 of 9
(5,204 Views)
HI Matt F,

thanks for the hint. I think that will bring me to disired functionality! By the way: do you know how this string code which is generated by the functions will be interpreted by the picture indicator and if the interpretation rules are different from LV 6.1 to LV 7 ? Is there information anywhere about that?

ANDY
0 Kudos
Message 9 of 9
(5,204 Views)