05-11-2012 08:22 AM
Hello..
But...i want know how can i put a slide for change the range of the threshold in this attachments?
and how can i do that ..automaticaly.....when i change the value of the range............the range automatically change in the image.?
Thanks so much.
Solved! Go to Solution.
05-15-2012
01:07 PM
- last edited on
08-20-2024
11:23 AM
by
Content Cleaner
Hello Eliel
First replace the cluster constant (Range Constant) in the block diagram of the attachment by a cluster control, then you substitute the numeric controls inside the cluster by horizontal or vertical Pointer Slider.
With the User Interface Event Handler design pattern (Event Structure) you'll be able to see the image modifications every time you hit the threshold button, if you want to see these changes more dynamically, when you click the threshold button once, I think you could use the State Machine design pattern. If don't know how the state machine design pattern works very well, please see the link below that's a tutorial about it.
Hope it helps you
Best Regards
05-17-2012 07:27 AM
can you do that in my example VI, please.
Because i don't know how can i do that.
Thank You so much.
05-17-2012 09:16 AM
Like this?
05-17-2012 10:03 AM
Hello Eliel.
Yes, this way also works, but you can just right click in the Range constant and select the option change to control from the shortcut menu. And then, in the front panel, you can right click in the numeric controls inside the cluster and select replace, to change them by the other types of controls like these ones you are already using.
like this in the attach.
Best regards
05-17-2012 03:03 PM
That's Perfect.....
Thank You so much...!!!
05-18-2012 06:15 AM
05-18-2012 07:04 AM
Do you know how can i calculate the area of the Threshold?
Can i do that?...with my VI...i can measure the area..with the point tool...but when i click with the point tool in threshold image ..the software show me the total area...of the image.
Can i measure the threshold area with your .VI?
Thank You
05-18-2012 07:06 AM
are you brazilian?..
if you are brazilian can you speak in portuguese with me because i'm brazilian too...kk
05-21-2012 07:09 AM