LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a scaled scroll bar in live video.

Solved!
Go to solution

With "Vision utilities" I'm trying to create a scaled scrollbar in Live video with Overlay I got it up to a point but I couldn't do exactly what I wanted. The problem is that the numbers are repeated but I haven't been able to create full synchronization. sample code here

0 Kudos
Message 1 of 8
(1,117 Views)

You have an image, Grab, and add an overlay to it. Then, next iteration, you add an overlay to it, this is repeated. The overlay is never cleared. Those IMAQ references are funky... It's not by value.

 

So clear the overlay before adding to the overlay...

0 Kudos
Message 2 of 8
(1,101 Views)

Also, check out the for loop 😉. That avoids copying the same thing 5 times.

0 Kudos
Message 3 of 8
(1,100 Views)

 Thanks for your reply. I don't know exactly how to do this 🙂 If I knew I would already. Can you help a little more, you know there are hardly any examples on this topic.

0 Kudos
Message 4 of 8
(1,093 Views)

actually i'm trying to create indicator like this but on live video.

0 Kudos
Message 5 of 8
(1,089 Views)

You can use a control\indicator, and then get it's bitmap, and draw it in the image.

 

You can try to simply put the control over the IMAQ image. Or get the pixels of the image, and draw them in a picture control (you'll loose a lot of functionality).

 

Sorry, I don't have NI Vision installed at the moment.

0 Kudos
Message 6 of 8
(1,070 Views)

thanks for your answer.But this answer not solution my problem.because I am not know how to solve this problem.

0 Kudos
Message 7 of 8
(1,066 Views)
Solution
Accepted by topic author constructionworker

I found such a solution. And it has been useful for me now.

0 Kudos
Message 8 of 8
(999 Views)