11-17-2020 04:57 AM
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
Solved! Go to Solution.
11-17-2020 05:26 AM
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...
11-17-2020 05:26 AM
Also, check out the for loop 😉. That avoids copying the same thing 5 times.
11-17-2020 06:18 AM
wiebe@CARYA 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.
11-17-2020 06:32 AM
actually i'm trying to create indicator like this but on live video.
11-17-2020 08:38 AM
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.
11-17-2020 08:46 AM
thanks for your answer.But this answer not solution my problem.because I am not know how to solve this problem.
11-25-2020 12:28 AM - edited 11-25-2020 12:28 AM
I found such a solution. And it has been useful for me now.