You might have to read the available manuals, because I couldn't find anything about this procedure. If you're using custom code and your own procedure, it might not be that easy to find a solution, since you are the only one who compiled and used the code. However, I do recommend checking the manual of the software using the link posted below.
It has been reported that in many cases, common questions and answers to problems were found in this guides: https://en.ids-imaging.com/manuals-ueye-software.html