View Full Version : SET ROI function in LabView
ATTILA.B
October 20, 2010, 23:13:02
HI,
how can I use the SET ROI function under LabView 7.1 ?
I would like to cut a smaller area from the full image.
I get a message about the camera doesn't support the flipping.
Camera: USB DFK 72AUC02
Please see the attachements.
Thanks in advance !
attila
Stefan Geissler
October 25, 2010, 07:48:26
Hello,
If the error occurs in "OpenDevice.vi", I suggest to remove the "SetROI" vi first and check again. Then I suggest to debug into the "OpenDevice.VI" and check, where the error occurs. It must be one of the parameters, that is wrong for the camera.
ATTILA.B
October 27, 2010, 23:41:51
Hello Stefan,
I have created a little program, and the SET ROI function is working well in normal case.
If one of the ROI parameter is incorect (bigger than the image size) the function is working but the failure message appeared at next time when the OpenDevice.vi is running (at settings the color format).
If I ignore the message the program running without problem until the next opening function. It seems something is stucked in the active-x control, the program wants to set the flip parameters that is not exist at this camera.
It is needed to re-insert (or delete and insert) the Active-x control to clear this problem.
The pre-checking the ROI parameters could be a solution but, how can I clear or reset the Active-x control with program ?
Thanks for Your support in advance !
Attila
Stefan Geissler
October 28, 2010, 07:28:12
Hello,
the problem is LabVIEW not reinitializing the IC Imaging Control ActiveX if a new debug session is started. That means, the ROI filter is not removed and, much worse a new one is added to the filter chain. This makes your program slower each time you start debugging and also cause the error message you encounter. Thus, I created the "IC_Clear.vi" that stops a possibly running live video stream and removes all filters that may are in use. This "IC_Clear.vi" should be the first after IC Imaging Control and the last VI in your diagram.
ATTILA.B
November 1, 2010, 21:20:58
Hello,
thanks for Your support, I will use your IC_clear.vi as you advise. The demo program is working now, I have started the program coding.
The topic could be closed.
Regards:
Attila
sitejasshah
November 27, 2012, 08:01:04
I saw similar behaviour when I first tried the SET ROI vi. It would work the first time that I run the labview vi.
But it would give me " error -2146959355 server execution failed " at the IICImagingControl.MemoryCurrentGrabberColorformat in IC_OpenDevice > IC_RestoreState when I tried running it the next time. It would freeze labview and I would have to kill it from task manager before I can run it in labview again.
Like someone mentioned in the previous post, I can delete and re-insert the ICImagingControl from the vi to get it working. But that is tedious.
I simply used the IICImagingControl.LoadDeviceStateFromFile method instead of the IC_RestoreState vi to load the settings from my setup file.
Now the SetROI vi works well without any errors.
Thank you for other posts on similar topic. They helped in arriving at this solution.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.