View Full Version : Rotate filter gives error in LabView

January 22, 2015, 13:14:01

I'm having problems with rotating the image of the live feed,

I've created a little testprogram.
The first time it runs fine, but the second time it gives an error:
"Error -2147352567 occurred at Property Node (arg 1) in IC_OpenDevice.vi->IC_RotateTestprog.vi"

When i try to insert "IC_clear.vi" the whole program just shuts down...

Attached is the program.
Would be great if there is a way around this bug.

I'm using a DMK 72BUC02
and LAbview 2012 32bit

Stefan Geissler
January 22, 2015, 13:30:39
The problem is in the handling of ActiveX in LabVIEW. It simply does not reset the ActiveX after you ended your debug run, as usual programming languages do. Also we run here into a problem caused by handling of property pages. So the handling of frame filters in LabVIEW can be a pain.

The following code is a sequence, that will work repeatedly:

Dim rffilter As FrameFilter
ic.SinkCompatibilityMode = True
ic.MemoryCurrentGrabberColorformat = ICRGB32
ic.SinkCompatibilityMode = False
ic.Device = ""
ic.Device = "DFK 21F04"
Set rffilter = ic.FrameFilterCreateString("Rotate Flip", "stdfilters.ftf")
ic.DeviceFrameFilters.Add rffilter

' Following 3 lines = IC_Clear
ic.Device = ""

All these properties are methods are available in LabVIEW.

January 23, 2015, 11:32:39
Thank you Stefan for the quick reply.

Building the labview equivalent of the above, did indeed work.
After playing around a bit I only needed to add the SinkCompatibilitymode to the "IC_OpenDevice.vi"


Can you explain what the SinkCompatibilitymode does?
And it might be good practice to add this to the VI set.

Stefan Geissler
January 23, 2015, 14:11:33

I must admit, I am not sure, what the Sinkcompatibility mode does, The documentation is here unclear:

It says "When SinkCompatibilityMode is enabled, TODO", which is somewhat embarrassing. However, it is some internal in the ActiveX.