LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the circle to draw a rectangle rather than a line?


@recneps wrote:

for the drawing rectangle program, is there anyway in taking out the line thats created when the circle creates the outline of the rectangle? if so what would be taken out to do that?


That should be pretty obvious even with very limited LabVIEW knowledge. 😄 What have you tried so far?

0 Kudos
Message 11 of 32
(1,286 Views)

i really cant figure out what needs to be removed, ive tried taking stuff out of it, the first time i took out the top left numeric code and it still worked but for some reason it didnt save it 

0 Kudos
Message 12 of 32
(1,268 Views)

I really don't know what the "top left numeric code" is. In my code you simply remove the parts related to the second plot, e.g. as shown in the picture

 

 

Message 13 of 32
(1,253 Views)

ive had a go at creating that code but not 100% on some parts heres what i have so far

0 Kudos
Message 14 of 32
(1,245 Views)

Well, you are almost there. WHy don't you start with the code I had attache earlier. It is easier to remove than to add.

 

Main missing things:

 

  • The lower diagram constant needs to be an array with four complex elements, so drop that diagram constant into an array constant container, resize for four elements and enter the values you see in my picture. wire it to the "+", autoindexing on the outer loop.
  • RIght-click the "build array" near the middle and select "concatenate inputs", now you have a 1D array output that you can wire to N of the inner loop (autoindexing on the outer loop)
  • voila!
Message 15 of 32
(1,241 Views)

i created the code like you said as you can see from the attachment, but when i run it, it doesnt plot anything and just makes the graph go crazy 

0 Kudos
Message 16 of 32
(1,236 Views)
  • You nee to turn off autoscaling for the x and y axes.
  • you need to select a plot style with points. (Currently you are only drawing lines, but since there is only a single points, no line can be drawn.)

 

Message 17 of 32
(1,232 Views)

is there anyway to implement that new code you told me to make in this code so that i can plot the three shapes onto one graph?

Download All
0 Kudos
Message 18 of 32
(1,227 Views)

@recneps wrote:

is there anyway to implement that new code you told me to make in this code so that i can plot the three shapes onto one graph?


Yes, there are many ways to do that.

0 Kudos
Message 19 of 32
(1,224 Views)

ive tried to link up the code as i did in the project before using the code you created for me but i cant figure out how to solve it. could you give me some help please?

0 Kudos
Message 20 of 32
(1,219 Views)