I've been playing with VB6 and flowcode and have a nice little Slave USB setup but would appreciate if anyone can confirm a couple of points.
Using an ECIO 40P
VB6
A) ECIO_OPEN, the return 'status' value is 0 for a successful connection? Not specified in the help but seems to be this way.
FlowCode
B) Under what conditions will the micro-controllers flowcode slave service routine stop and return to the main program, is the only (proper) option to call the Stop_Slave_Service macro from within the running service macro? If I simply disconnect the USB cable to the Microcontroller, the Micro appears to just wait for the USB to e reconnected. Its not a big problem as i guess I'll just need to add a 'release micro' routine, activated when it sees a specific message from the PC.
Cheers,
When I've tidied the whole lot up, I'll post some of the project as it been quite a learning process.
J.