LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shapes on the same graph

Solved!
Go to solution

im trying to make a program that when a boolean switch is clicked it draws a certain shape on a graph and then when i turn another boolean switch on it draws another shape onto the same graph but will remove the other shape when boolean is swtiched off. any dieas on how i would do that?

(if that makes any sense)

0 Kudos
Message 1 of 31
(3,526 Views)
-What will draw the shape on graph and what do u mean by shape here?
-Try simple case structure with case selector from the boolean control and do the drawing on the chart.
-Before drawing just clear the chart and then draw the new one.
Thanks
uday
0 Kudos
Message 2 of 31
(3,509 Views)

im trying to make a vi to draw the outline of a triagnle, circle, rectangle on a graph and to plot a random shape using coordinates

0 Kudos
Message 3 of 31
(3,495 Views)

Here's what i have so far. Im wanting to make it so there are three boolean swicthes for each shape (circle,triangle and rectangle) so that when they are switched on, they draw the shape onto a graph (but the same one not 3 seperate ones). Im not sure on how i would link them all to one graph and how to put them into a case structure. Everytime i try to put them into a case structure it just causes other parts on the different parts fo code to delete for some reason. 

Hope this makes sense on what im trying to do.

 

Any help would be appretiated 🙂

 

ps you maye need to scroll along to the right on the block diagram to find the code for the other shapes

0 Kudos
Message 4 of 31
(3,483 Views)
Can you post it in LV12.
Thanks
uday
0 Kudos
Message 5 of 31
(3,477 Views)

how do i post it in LV12?

0 Kudos
Message 6 of 31
(3,467 Views)

does anyone know how to do that?

0 Kudos
Message 7 of 31
(3,448 Views)
Go to File>>Save for Previous Version>> Save for LV12.
Thanks
uday
0 Kudos
Message 8 of 31
(3,428 Views)

here it is 

0 Kudos
Message 9 of 31
(3,415 Views)
Solution
Accepted by topic author recneps

Here, I changed it a bit. Hope you like it, I didn't use the draw function.

The rectangular has to be straight in order to work properly

 

Koen

 

EDIT: made triangle sizeable

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
Message 10 of 31
(3,409 Views)