Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with FindStraightEdge function in VB.

I would like to read and set the FilterWidth value with the FindStraightEdge function. I used CWMVCommonEdgeOptions argument to read and set Contrast, Steepness, ... settings, HOWEVER, I kept getting error message while reading and changing FilterWidth value. I debugged my program and found that under FilterWidth, it said "Object doesn't support this property or method".

Can anyone please advice as of how I can read and set the FilterWidth value? Thanks.
0 Kudos
Message 1 of 3
(3,197 Views)
This is a known issue with our cwmv.ocx file. I have attached a fixed version of the file below. You need to replace the old cwmv.ocx file with this new and then register it again. The cwmv.ocx file is in the system folder of your PC, typically C:\WINNT\System32.
After you have replaced it, register it by using the following command in the Run menu:
\regsvr32 cwmv.ocx
where is the complete path to the windows system directory. Hope this helps.

Jack Arnold
Application Engineer
National Instruments
Message 2 of 3
(3,197 Views)
Thanks Jack.

--Simon Teng
0 Kudos
Message 3 of 3
(3,197 Views)