LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

threshold range slide imaq vision

Solved!
Go to solution

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.

0 Kudos
Message 1 of 11
(4,298 Views)

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.

 

https://www.ni.com/en/support/documentation/supplemental/16/simple-state-machine-template-documentat...

 

Hope it helps you

 

Best Regards

Marcio Soares
Applications Engineer
National Instruments Brasil
www.ni.com/suporte
Message 2 of 11
(4,270 Views)

can you do that in my example VI, please.

 

Because i don't know how can i do that.

 

Thank You so much.

0 Kudos
Message 3 of 11
(4,260 Views)
Solution
Accepted by eliel

Like this?

Josh
Software is never really finished, it's just an acceptable level of broken
Message 4 of 11
(4,251 Views)

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

Marcio Soares
Applications Engineer
National Instruments Brasil
www.ni.com/suporte
Message 5 of 11
(4,249 Views)

That's Perfect.....

 

Thank You so much...!!!

 

 

0 Kudos
Message 6 of 11
(4,243 Views)

You're welcome!

Marcio Soares
Applications Engineer
National Instruments Brasil
www.ni.com/suporte
0 Kudos
Message 7 of 11
(4,225 Views)

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

0 Kudos
Message 8 of 11
(4,221 Views)

are you brazilian?..

 

if you are brazilian can you speak in portuguese with me because i'm brazilian too...kk

 

 

0 Kudos
Message 9 of 11
(4,220 Views)

Olá Eliel.

 

Podemos conversar em portugues sim!

 

Apenas para o melhor gerenciamento e facilidade nas respostas às suas perguntas, peço o favor de postar um nova pergunta em um novo fórum.

 

Obrigado

 

Atenciosamente.

Marcio Soares
Applications Engineer
National Instruments Brasil
www.ni.com/suporte
0 Kudos
Message 10 of 11
(4,195 Views)