07-18-2016 01:19 AM
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
07-18-2016 02:28 AM
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
07-18-2016 03:46 AM
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
07-18-2016 04:02 AM
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
07-18-2016 07:05 AM - edited 07-18-2016 07:06 AM
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 ).