cancel
Showing results for 
Search instead for 
Did you mean: 

How to automatically draw lines

SOLVED
@nk
Member
Member
Solved!

How to automatically draw lines

In LabVIEW I have to draw lines automatically ( Both vertically and Horizontally) the user will define the no.of vertical and horizontal lines.

Is this possible using LabVIEW 

 

 

Smiley Wink Thanks in Advance

@nk
9 REPLIES 9
P@Anand
Trusted Enthusiast

Re: How to automatically draw lines

How and where do you want to draw lines? Just as a display for the user or does it has any measurement? Please explain your scenario.

-----

The best solution is the one you find it by yourself
@nk
Member
Member

Re: How to automatically draw lines

The lines does not have any measurements .But all the horizontal lines should of same length. 

The drawn lines will be saved as an image.

lines willl be drawn in groups by leaving some space between each groups ( the size of each group that is no.of lines in each group will be defined by the user)

This will be saved as an image. The lines will be drawn in a blank image.

@nk
P@Anand
Trusted Enthusiast

Re: How to automatically draw lines

Message contains an attachment

Attached is an example for you to start with. You can export that image thorugh code and also manually.

 

Since I am facing some problem I have changed the extension from .vi to .png, please change it back and use it.

-----

The best solution is the one you find it by yourself
@nk
Member
Member

Re: How to automatically draw lines

I was not able to download the file . can you mail me the VI anikrishnan@ymail.com

@nk
@nk
Member
Member

Re: How to automatically draw lines

Message contains an attachment

The lines i Have to cretae is one which like am attaching.

In the image the lines have curves but I dont need that. the no.of lines will be given by the user

@nk
Hooovahh
Proven Zealot

Re: How to automatically draw lines

Use the 2D picture control.  On the palette under Graphics and Sound >> Picture Functions there are several functions for drawing.  There are also many examples under Help >> Example Finder on how to draw on the picture control.

@nk
Member
Member

Re: How to automatically draw lines


Use the 2D picture control.  On the palette under Graphics and Sound >> Picture Functions there are several functions for drawing.  There are also many examples under Help >> Example Finder on how to draw on the picture control.

 

 
I have tried that But I am able to define the end point only.
In short the lines are starting from the same point. so I can't draw my lines like this 









@nk
Tags (2)
altenbach
Knight of NI
Solution

Re: How to automatically draw lines

Message contains a hyperlink

You move to the desired starting point of the line using "move pen" then draw the line using "draw line".

repeat for each line. (e.g. using a FOR loop and autoindexing over the positions).

@nk
Member
Member

Re: How to automatically draw lines

Thanks alot christain Smiley Happy 

@nk