USB communication between VB and an 18Fxx31 device
I've been using an 18Fxx31 PIC for motion control making use of the built in quadrature decoder. Works fine as a stand alone controller. So to make life harder for myself I want to run the motion control out of a VB program. That will mean passing a 32bit "long" word from VB to the PIC. For simplicity I would like to use a USB connector to do this. Can one of you gurus point me at an easy way to learn how to do this ?
The idea is to simply pass the desired position from a VB program to a controller which will run its own code to drive a linear drive to the new position and then send back an indication that the drive has arrived.
thanks, Andrew