PDA

View Full Version : Rotate filter gives error in LabView



Ruudwes
January 22, 2015, 14:14:01
Hi,

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, 14: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.DeviceFrameFilters.Clear
ic.Device = ""
ic.Device = "DFK 21F04"
Set rffilter = ic.FrameFilterCreateString("Rotate Flip", "stdfilters.ftf")
ic.DeviceFrameFilters.Add rffilter
ic.LiveStart

' Following 3 lines = IC_Clear
ic.LiveStop
ic.DeviceFrameFilters.Clear
ic.Device = ""


All these properties are methods are available in LabVIEW.

Ruudwes
January 23, 2015, 12: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"

1749

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, 15:11:33
Hello

I must admit, I am not sure, what the Sinkcompatibility mode does, The documentation is here unclear:
www.theimagingsourceforums.com/showthread.php?325252-Rotate-filter-gives-error-in-LabView

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