Italy
Asked — Edited

Where To Declare Ezb

Hello.

I am trying to use visual basic for controlling ez-board, but i have some difficult about beginning using it. I have read your tutorial and every post in this forum, but i still have not understand where i have to declare ezb.

Imports EZ_B Imports EZ_B.CameraDetection Imports System

......where do i have to write these lines? In 'sub form load'? In every buttons?

At the moment, i want a project with only a form and a button. Pressing the button, a servo must move to 50%. Can someone please suggest how to do this?

Thank you very much.

Ema from Italy


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

Italy
#9  

Yes, i have tried the example, but i have the error

System.Io.FileNotFoundEXCEPTION FileNotFoundException. Impossible to load file or assembly FFMPEG.dll or one of dependence.

Exception first-chance type 'System.IO.FileNotFoundException' in System.Windows.Forms.dll

The problem seems to occour in the line: _camera = New Camera(EzB_Connect1.EZB)

Do someone know a solution?

Italy
#10  

Help please.

#11  

@odt- Have you tried re-installing the SDK?

I don't have my kit yet so if that does not help, give me a couple of weeks and if no one helps you I'll install the SDK and see if I can figure it out. I'm just not experienced with EZB yet so I can't really help yet. I am however quite crafty and am pretty good at solving problems. I've been asking lots of questions because I don't have the hardware yet to just try stuff and figure it out. (Once again, I thank the EZ community for all of their input and information.)

From a programmers stand point it seems to be aninstallation or configuration issue. The error you posted says "I can not find something." So a file is missing OR it is looking in the wrong place for the file. I know you do not speak English well so if no one helps you out by the time I try to figure it out, I'll try to get 'someone' to translate. Hoping that 'someone' is still watching the thread and is willing to translate again ;-)

I wish I could be more help, just know that I won't let you fall between the cracks. Even if it takes some time. I should have my hardware on 4/29 so give me a little time to play with it and I'll see what I can do. I did plan on installing the SDK and using C# in the near future anyway. I have some experience with C# so my plan was, "If EZ-Script confuses me I'll do it all in C#." I'll keep an eye on this thread. I hope someone can help you out before I can.

Italy
#12  

I have try to install Sdk on two Pc and the same error occours in both computer, so, i think the error is mine. Surely i am doing something wrong in configuration, but i am not able to find the problem.....

Italy
#13  

.....i have spent another day trying to solve the problem and i am a little tired...... I am beginning to think to cut-off ez-board and use Arduino. It is easyest to control from VisualBasic.

Netherlands
#14  

Hi,

I had the same problem. You need to add the directory with the ffmpeg.dll file to your system path.

Windows 2000, XP, Vista, Windows 7


  1. Right-click on the My Computer icon. (Under Windows XP, Vista, or Windows 7, the My Computer Icon may be located in the start menu.)

  2. Choose Properties from the context menu.

(Alternatively, you can double-click on the System icon in the Control Panel)

  1. Click the Advanced tab or "Advanced system settings" on Windows Vista or Windows 7

  2. Click the Environment Variables button.

  3. Click on the variable called 'Path' and then click on Edit. Now add the target directory to the value of the variable, using a semi-colon as a separator.

This is what it looks like for me:

C:\Program Files\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MATLAB\R2012a\runtime\win32;C:\Program Files\MATLAB\R2012a\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;c:\ffmepg\bin;C:\Users\Boon\Documents\Minion\EZ-SDK\DLL

note the last line: ....\EZ-SDK\DLL

You will probably have to restart your PC before your IDE will recognize the path.

Hope this helps you, Boon.

PRO
Synthiam
#15  

That is one way to do it - the other is to copy the files from the EZ-SDK DLL folder into your application folder.

For example, the files necessary for all EZ-SDK functions to work are found in the EZ-SDK DLL folder. Those files must be in you executable folder. You can either manually copy them, or add the files to your project and modify their property to be copied.:)

When working with libraries in your custom application, they will always need to be copied into the executable folder. The library DLL files that are dependencies will need to be accessible by the application. This can be done by either being in the path, or by being included in the executable folder.

The files that must be included are...

Quote:

aForge.dll avcodec-53.dll avdevice-53.dll avfilter-2.dll avformat-53.dll avutil-51.dll EZ-QRCode.dll EZ_B.dll FFMPEG.dll iweardrv.dll iwrstdrv.dll swscale-2.dll

Italy
#16  

Ooooh! I would never been able to do it without your help!

Thank you Boon! Now the program starts without errors! You have been very very helpful for me!