Andy Hunter
December 21, 2011, 04:45:13
Hi,
I have a DMK 41BU02.H camera that I'm learning to program in LabView. So far, I've built a VI similar to the one described in the "Getting Started" part of the documentation. It has an IC Imaging Control, a button to capture an image and plot it as an intensity map, and a button to stop the program.
I also added an ROI filter, since that's something I'll need to use down the road. Without the ROI filter, it works great. With the ROI filter, it works the first time I start the VI, but fails if I stop and restart. The failure occurs in IC_OpenDevice when it tries to set the MemoryCurrentGrabberColorformat property of the ICImagingControl object. The error message I get is shown in one of the images below, but it isn't very descriptive.
1440
1442
1441
The Debug image shows where the first error occurs in IC_OpenDevice
As you can see, I'm using IC_Clear.VI to reset some properties of the ICImagingControl when my VI starts and stops. I read another thread here where that was recommended as a solution to a similar problem. All that IC_Clear does is stop live display, clear the FrameFilters chain, and set ICImagingControl.Device to null.
Does anyone have any advice? Should I reset some other things in IC_Clear?
I'm not that familiar with ActiveX or how it works with LabView, so I've run out of ideas to try. Is it possible to issue a command to completely clear the ICImagingControl object and start from scratch? One (poor) solution I've found is to manually delete the control and replace it from the IC LabView Extension palette before restarting the VI. That works, but obviously I don't want to do that every time.
Other Info:
LabView Version: 8.5
Windows: XP Pro 2002 Service Pack 3
Thanks,
Andy
I have a DMK 41BU02.H camera that I'm learning to program in LabView. So far, I've built a VI similar to the one described in the "Getting Started" part of the documentation. It has an IC Imaging Control, a button to capture an image and plot it as an intensity map, and a button to stop the program.
I also added an ROI filter, since that's something I'll need to use down the road. Without the ROI filter, it works great. With the ROI filter, it works the first time I start the VI, but fails if I stop and restart. The failure occurs in IC_OpenDevice when it tries to set the MemoryCurrentGrabberColorformat property of the ICImagingControl object. The error message I get is shown in one of the images below, but it isn't very descriptive.
1440
1442
1441
The Debug image shows where the first error occurs in IC_OpenDevice
As you can see, I'm using IC_Clear.VI to reset some properties of the ICImagingControl when my VI starts and stops. I read another thread here where that was recommended as a solution to a similar problem. All that IC_Clear does is stop live display, clear the FrameFilters chain, and set ICImagingControl.Device to null.
Does anyone have any advice? Should I reset some other things in IC_Clear?
I'm not that familiar with ActiveX or how it works with LabView, so I've run out of ideas to try. Is it possible to issue a command to completely clear the ICImagingControl object and start from scratch? One (poor) solution I've found is to manually delete the control and replace it from the IC LabView Extension palette before restarting the VI. That works, but obviously I don't want to do that every time.
Other Info:
LabView Version: 8.5
Windows: XP Pro 2002 Service Pack 3
Thanks,
Andy