Canada
Asked — Edited

Has Anyone Connected To Camera Using Visual Basic?

I was wondering if anyone has connected to the video camera using ez_B.dll from visual basic? I'd like to see a tutorial using the same method as was used in the tutorial for connecting to the servo via ez_B and Visual Basic.

Also, was wondering if anyone has tried to build a .BAS (visual basic module) for the ez_B functions so that the functions can be called from old versions of basic such as VB6?


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

Canada
#10  

TO SIMPLIFY:

These are the error msgs I get

Error 1 Argument not specified for parameter 'captureHeight' of 'Public Sub New(ezb As EZ_B.EZB, captureWidth As Integer, captureHeight As Integer)'. Error 2 Argument not specified for parameter 'captureWidth' of 'Public Sub New(ezb As EZ_B.EZB, captureWidth As Integer, captureHeight As Integer)'.

when I run the following code.

_camera = New Camera(EzB_Connect1.EZB)
Canada
#11  

USING: Visual Studio Pro 2012,avicap32.dll,on windows 7 x64

Using the code found at:

http://www.devx.com/dotnet/Article/30375

I am able to get video from a wired video cam (NOT BLUETOOTH yet!).

If anyone wants to try the code and is having trouble, let me know and I'll give you the steps involved.

Still not able to get video using the EZB.DLL.

PRO
Synthiam
#12  

My suggestion is to take an online course on using VB and Visual Studio. First, follow the instructions in the Readme.txt file contained in the EZ-SDK ZIP File. Good luck:)

A book may help also - such as VB .Net for Dummies - which i know provide great instructions.

Canada
#13  

I just ordered a couple of books: vb2012 and another vs2012...

Figure I'll start with those and then move up to the dummy one:) (I've got a bunch of Dummy books: there are great)

I've tried to follow the instructions...still didn't work...But I'll try it again... Thanks (will be changing my name to BOOBOOBOT soon!

PRO
Synthiam
#14  

Haha, do not fret:) If you follow the directions - it should be very easy.

  1. Simply download EZ-SDK

  2. Extract the contents of the file to your desktop, or somewhere common. Like My Documents

  3. Follow the directions within the README file

  • The README file instructions are important. They will direct you to ensure the project is configured for 32 bit (not 64). It will also explain that you will need to remove any broken references to EZ-B.DLL. A broken reference will display an icon.

  • The README will also explain that you need to add a reference to the EZ-B.DLL.

User-inserted image

User-inserted image

User-inserted image

Canada
#16  

Great!

My screens are a little different but I think I checked everything...Had a ref to Forge.dll which i removed.. Runs with NO errors but still no camera... I am able to connect to the EZ board...(on COM 9)