LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i generate a rectangle in the Front Panel with the formula node and other cases????

Hi beginner online!!! (Sorry my english is rusty)
I have a problem with an semesterproject in LabView, i should simulate a process with an rectangle!
But i am a beginner with LabView and i need help from experts please!
I have to generate a rectangle in the Front Panel and will(should) do this with a formula node and some casestructures. Which formula and variables must i write in the node and cases to create this rectangle? Hoe can i vary the position of this rectangle in an define field? Should i create two rectangles, an visible and an unvisible?
(The 0 step is that nothing is in the machine) To generate the rectangle is the  first  step, second step is to punch two holes in the rectangle. The rectangle must be visible in the Front panel, and walk from the second step (position 1) to the third step (position 2) who is stands/waiting  a camera which checks the holeradius, they give a feedback to the process is good work =1 or bad work =0.
An other problem is, how can i write letters on a cornerpart of the rectangle, f.e. "made in germany" o.a.l.t.? If anythink unclear ask me please for more informations!!!
For every kind of helping me best thanks back.
0 Kudos
Message 1 of 8
(3,853 Views)
There are several possible solutions to your problem :

- display/hide and move programmatically LabVIEW controls on the front panel, using the "position" property node

- use a picture control to draw and move the required shapes.


The second solution gives more flexibility regarding the control of the shape and size.


The attached vi presents examples of the different techniques.


To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with.

Message Edité par chilly charly le 04-16-2006 03:22 AM

Chilly Charly    (aka CC)
0 Kudos
Message 2 of 8
(3,841 Views)
Hi Chilly Charly!!
Some of your example is good work. But i need a little more help. The green icons in top of the WhileLoop, how do you create this.
How can i define the X,Y coordinates in the small  moved  rectangle, ...so many options? I can not exactly position the second hole.
How can i generate a waiting position, when the rectangle is in complete right position and is in complete left position?For 2-4 seconds long ?
Know you how it is actable????
For all help thanks Frank

0 Kudos
Message 3 of 8
(3,800 Views)

Hi Chilly Charly !
I have shown your programm to my Prof. and he was very excited. He says to me very good work but I found this very difficult to realise.
I have played with the options and buttons and found it also very good. some options were very new to me. Im not so involved in this programm like you, so can you help me a little bit more please. I can learn from you if you will.
best regards

0 Kudos
Message 4 of 8
(3,782 Views)


FrankSteal a écrit:

Hi Chilly Charly !
I have shown your programm to my Prof. and he was very excited. He says to me very good work but I found this very difficult to realise.
I have played with the options and buttons and found it also very good. some options were very new to me. Im not so involved in this programm like you, so can you help me a little bit more please. I can learn from you if you will.
best regards





Hope you told him that the program was found on the internet. 🙂
I suppose that you found by yourself what were the green icons on the diagram. If you want to learn LabVIEW, you'll have to invest some time, sweat and tears.
I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
Chilly Charly    (aka CC)
Message 5 of 8
(3,772 Views)

Hi C.Charly!

Thanks for information about Labview Courses.
But i have a little bit more understand your programm and yes i told them that this was from the internet.
I send you my current version of this programm as atteched file.
Im now in the last semester and have many to learn for my last written tests, therefore i need a little help from you ok.
How can i wire the small case loop that the hole radius is variable?
And How can i create the second hole with button for switching on and off like the first hole?
I think that i must read to much lessons to solve the problems.
I hope now that you can give me the kick to learn more about this programm, teach me a little bit please.
best greetings

Download All
0 Kudos
Message 6 of 8
(3,761 Views)
As CC said, it is important for you to learn how to do these things yourself.

To have the user change the size of the holes, replace the one or more of the constants in the hole generator cluster with a front panel control.

To control the visibility of the second hole, use another case structure similar to the one you now have for the first hole.

Try to minimize the coercion dots (little dots on wires where they enter a node). For example where the wire from the "i" terminal enters the divide node. These indicate that LV is changing the datatype of the signal to match the type required for the function. Since the draw functions require I16 inputs, amke all the controls and constants have I16 representation and use the conversion functions from the math palette where necessary, such as the output of the tanh function which is a DBL. This primarily affects memory use and speed. Neither of these is particularly important in your present exercise, but now is the time to learn good habits.

Left to right signal flow makes diagrams much easier to read and understand.

Lynn
Message 7 of 8
(3,752 Views)
If the figures are simple.. (rectangle round) I think the move frontpanel object is faster then using the picture control... Or am i wrong..? But ok they all have there advantages and disadvantages.
 
 
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
Message 8 of 8
(3,748 Views)