Machsupport Forum

Mach Discussion => Mach SDK plugin questions and answers. => Finished Plugins for Download => Topic started by: Klaus1311 on September 01, 2014, 06:08:35 AM

Title: Mach3 Camera Plugin V3
Post by: Klaus1311 on September 01, 2014, 06:08:35 AM
Hi,

in the past, some users had problems connecting their cameras with my camera plugin. I've rewritten a new version using CV API. Since the new plugin GUI looks very similar to the previous plugin its named Camera Plugin V3. This version is a Beta version. It installs an installation log-file "c:\\CameraPlugin_KD.log" for trouble shooting purposes.


Klaus
Title: Re: Mach3 Camera Plugin V3
Post by: TDAY on September 05, 2014, 03:02:54 PM
Hi Klaus,
 I had 2 problems when installing.
1st. Plugin was installed in the Mach3 plugins folder inside of another plugin folder.
2nd. I have my menu bar set to not show(setting in the General Config window) and use buttons on screen to show/hide menu. Being set like this was not allowing the Video plugin to show.

Other than those issues the plugin is working nicely with low CPU usage, maybe another 5-7% more CPU usage.

Thanks again,
Troy
Title: Re: Mach3 Camera Plugin V3
Post by: Chaoticone on September 05, 2014, 06:38:51 PM
Thanks Klaus!

Brett
Title: Re: Mach3 Camera Plugin V3
Post by: Klaus1311 on September 06, 2014, 07:08:24 AM
Hi Troy,

thank you for your feedback. About your issues:

1) What was the default path of the installer package showing, did you change the installation path of the installer package?
2) What OS are you using? I'm testing with Win7. It seems to work with my system. Is the "Macro control On" button checked?
   I tested with the following scripts:
   Using 1 button
        led = GetUserLED(1104)
        If  led = 1 Then
        SetUserLED(1102,0)
        SetUserLED(1103,1)
        SetUserLED(1104,0)
        Else
        SetUserLED(1102,1)
        SetUserLED(1103,0)
        SetUserLED(1104,1)
        End If


     Using 2 Buttons
        On
         SetUserLED(1102,1)
         SetUserLED(1103,0

       Off
         SetUserLED(1102,0)
         SetUserLED(1103,1



All examples use the default led numbers 1102, 1103, 1104


Klaus
          
Title: Re: Mach3 Camera Plugin V3
Post by: TDAY on September 06, 2014, 07:40:53 AM
Hi Klaus,

1) Iam using the default path. Did not change any path.

2)Using Windows XP Pro. Did not create a button and try it that way. And the "Macro control On" is not checked.Will use your codes below and get back with you.

Thanks again,
Troy
Title: Re: Mach3 Camera Plugin V3
Post by: TDAY on September 07, 2014, 09:22:01 AM
Hi Klaus,
 Scripts worked great even with System Menu set to off. :)

On another note. Can the option to rotate image be added?

Thanks again,
Troy
Title: Re: Mach3 Camera Plugin V3
Post by: Klaus1311 on September 08, 2014, 11:34:43 AM
Hi Troy,

for the moment I'm not planning to add a image rotation feature, this would take quite a bit of CPU resources. Some cameras are shipped with dedicated drivers and software where mirroring and flipping of the image can be set.

Klaus
Title: Re: Mach3 Camera Plugin V3
Post by: TDAY on September 09, 2014, 07:06:20 AM
Hi Klaus,
 I forgot all about that. Ill give it a go.
Thanks again ,
Troy
Title: Re: Mach3 Camera Plugin V3
Post by: DavidS on October 23, 2015, 11:18:43 AM
Hi Klaus

I am having some problems installing the plugin.  I followed the installation instructions, but when I start Mach3 I get the message "Plugin DLL defective  reload"  then "webcam plugin defective  ignoreing" after which the installation of Mach3 completes.  The Plugin is not installed.  In the Mach3 Plugin folder is webcamplugin.dll with what I guess is the version number of 3.0.0.0 but does not appear on the list when I press "config plugins" in Mach3.

I would be grateful if you could let me know what I should do next?

Thanks

David
Title: Re: Mach3 Camera Plugin V3
Post by: Klaus1311 on October 23, 2015, 12:28:54 PM
Hi David,

please deinstall the plugin. Download the actual version v3.02 and install it. If that doesn't help, please let me know.

Regards
Klaus
Title: Re: Mach3 Camera Plugin V3
Post by: DavidS on October 24, 2015, 06:20:10 AM
Hi Klaus

I have deinstalled the plugin and downloaded and reinstalled  V3.02 again.  It produced the same result of "Plugin dll defective". 

It may not be relevant, but I noticed that about halfway through the installation, I always get asked to repair Microsoft Visual C++2010 x86.  I followed the instructions to repair this, including a reboot, and I got the message that it had been successfully repaired.  However, when starting Mach3, I get the dll defective messages again.

Regards

David
Title: Re: Mach3 Camera Plugin V3
Post by: Klaus1311 on October 24, 2015, 11:28:58 AM
Hi David,

What main processor type are you using, is it perhaps an AMD? Please install the attached PluginTest, run it and use menu Test -> Analyze. This will put some files on your C - drive. If you send me these files I will have a look at it.

Regards
Klaus
Title: Re: Mach3 Camera Plugin V3
Post by: DavidS on October 25, 2015, 06:52:36 AM
Thanks for the quick reply.

I installed your Plugin Test and ran Test -> Analyze.  I got a message box headed "Plugin Test Error" with the message "Plugin not installed or not at least started once".  Hit OK, and got a table describing various features of my installation.  I got 7 files on the C drive, which are attached.

The CPU is an AMD Athlon(tm) XP 2600+

Thanks

Regards
Title: Re: Mach3 Camera Plugin V3
Post by: Klaus1311 on October 25, 2015, 08:02:10 AM
Hi David,

I think I have bad news. Plugin version3 is completly rewritten. With that version I'm using the OpenCV library. This library obviously has problems with AMD Athlon processors. For the moment I don't have a solution for this problem. Depending on the feature you need, you could use version2 where I'm using a different library. You'll find it attached to this post.

Regards
Klaus
Title: Re: Mach3 Camera Plugin V3
Post by: DavidS on October 25, 2015, 12:41:03 PM
Hi Klaus

I tried V2 and it works correctly on the AMD machine.  I installed V3 on another machine with an Intel processor and V3 worked correctly, so it seems that the AMD Athlon is the culprit.

Thank you very much for your help.

Regards

David