LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing a shape in LABVIEW and get its complete 2-D Coordinates in a 2-D array when I move the mouse over it

Hello Everyone,

 

I need help in case that: I want to cut a shape in a specific pattern. For that, I need to draw a shape and get its complete coordinates( i.e with a very small increment) so that I can give these to microcontroller (mbed) so that motors can move accordingly. 

 

Your help is required and I will be very thankful for this

0 Kudos
Message 1 of 5
(4,125 Views)

LabVIEW is no drawing program. That being said, you have to implement everything concerning drawing on your own.

Attached you can find a first draft showing where you can start. However, this example does not include the features you request.

 

Additionally please note that the example only shows how to draw things. The image information itself is not useable by your microcontroller. So you do need to store the coordinates of your shape in a separate data space.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 5
(4,103 Views)

Thankyou....... By drawing I mean that if I load a specific image in LABVIEW.... and when I move mouse over a specific area.... It gives and stores the coordinates in an array as output... Input wil be an image from my PC

0 Kudos
Message 3 of 5
(4,095 Views)

Do you have an example of such an image?

 

It sounds like you will have a load of work to do before making this working....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 5
(4,083 Views)

Maybe the example below can get you started. When you click on a pixel in the picture indicator, you get back the corresponding coordinates. Keep in mind when you design the size of your 2D Picture control/indicator, that the size of the whole object (what you can change via the right click menu) is not the same as the "DrawAreaSize". So if you have always the same jpg size for example in pixels, set the 2D Picture indicator size to the same X-Y pixel value pair using the "DrawAreaSize" property node ( http://digital.ni.com/public.nsf/allkb/B9FFF248DA64EA8586256F0F0061E263 ).

 

Image_coordinates.png

0 Kudos
Message 5 of 5
(4,069 Views)