VB Interface for ECIO40P16

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

VB Interface for ECIO40P16

Post by QMESAR »

Hallo Team

I have down loaded the VB.Net examples Ben gave me the link however please help me understand a few things,I have to apologize I have very little USB knowledge and possibly asking very stupid questions :oops:

(1)The examples are all for the PIC18 ECIO and I would like to use the ECIO40P16 are the USB api dll you are using the same for both ?
(2) There is no document on the dll functions and function calls How do i know how to send and receive data from the VB example I could see some open and close function calls
are there any documentation on this to help a newbie getting started
(3) I also do not see that the dll is referenced to in the VB project settings or is it enough to only add the dll to my new Vb project folder ? if it is referenced could you please give a small explanation on how to do this(please)

I appreciate any help

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: VB Interface for ECIO40P16

Post by QMESAR »

Opening the Examples in VB.net Express 2010 the following errors are shown I am now more lost as the examples seems to miss some files

attached error messages can you guys please give a hand here
Attachments
1.jpg
Example 1 show this
(189.36 KiB) Downloaded 5582 times
2.jpg
Example 2 opens with no errors but when debugging is started it reports the followin errors
(262.36 KiB) Downloaded 5582 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: VB Interface for ECIO40P16

Post by Benj »

Hello,

If you double click the DAO error it should take you directly to a header file with a single line of code. Delete the line of code and hopefully compilation will then succeed.

Also ensure that the ECIO_api.DLL file is contained in the same folder as your project and you should be ok. The DLL should work for both types of ECIO but the current USB slave component may not work for the dsPIC ECIO. I will test this today as I am working with the USB components on dsPIC targets.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: VB Interface for ECIO40P16

Post by Benj »

The ECIO40P16 won't work with the USB components as is, however I now have this working at least for the USB serial component.

I've made progress with the HID and will do the Slave tomorrow and then release to the forums so you can get up and running.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: VB Interface for ECIO40P16

Post by QMESAR »

@Ben

Thank you very much for your efforts .It is really appreciated :D

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: VB Interface for ECIO40P16

Post by Benj »

Hello,

Right the ECIO40P16 should now be working with the updated USB components available from here: http://www.matrixtsl.com/mmforums/viewt ... 600#p65600

These updated components should be present in the next update release.

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: VB Interface for ECIO40P16

Post by QMESAR »

Thank you very much Ben much appreciated :D

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: VB Interface for ECIO40P16

Post by Jay Dee »

Hi Guys,
Did you get Exercise 6 (USB Slave Example) working?
Using Visual Studio 2015 - Community Edition, I get a load of errors when I convert and try to compile..
I have the DLL file in the projects directory.
If anyone has exercise 6 or other simple USB slave example in a working state for the lastest VisualStudio.Net flavour it would help a lot.
thanks, J.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: VB Interface for ECIO40P16

Post by Benj »

Hello,

From my experience of the upgrader it was a line in the auto generated upgrader document that was causing compile errors, delete the line and the compilation was completing correctly.

I could be wrong, I was using 2012 not 2015.

Other then that Visual Studio is largely unknown to me as I personally do my best to avoid Microsoft dev tools at all costs (something about a barge pole :D ) but we do have other members of the team that could potentially help if your at a brick wall.

I would start by looking up the error messages on Google and see if you can pinpoint the cause.

Also search for the issue here on our forums, I think this has been previously explored and solved.

Post Reply