LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing lines by angle

I am working with a LabView intensity graph and need to designate certain areas of the image for gates. Since the areas we intend to look at a curved this prevents me from using cursors and I have used the Draw Circle by Radius vi to draw arcs for the gates. What i would like is to be able to designate the program to draw a line from radius X to radius Y at angle Z or to just be able to connect the two arcs together. I included a picture to help clear up my explanation.

 

Thanks in advance,

Burwitz

0 Kudos
Message 1 of 3
(2,984 Views)

Do NOT ever attach BMP files renamed to *.jpg to circumvent the posting rules that prevent bmp attachments. Your picture is not worth 4MB of information!

 

You can draw anything you want using picture commands and the "plot images" overlay of the graph. The rest is simple geometry calculations. (example)

0 Kudos
Message 2 of 3
(2,978 Views)

Assume you want to conmnnect end of arc1 (rad1, angle1) to end of arc2 (rad2, angle2):

Draw line from (x1,y1) to (x2,y2) where x1=rad1*cos(angle1), y1=rad1*sin(angle1), and so on.

0 Kudos
Message 3 of 3
(2,953 Views)