Hi all,
I have been trying to use Visual Basic Express 2010 to create a GUI for displaying data streams via USB port using the FTDI chip and the D2xx driver which interfaces between the computer and a PC board (homemade). When I first started playing with the FTDI setup, I was coding for the console. After I got that working satisfactorily, I switched over to coding for the forms application. This is where the problem began.
When I start running the Forms application, I get no data streams. I can write (at least the FTDI module returns that a byte was written). However, I cannot read. The FTDI buffer is always empty no matter how many times I send/write the byte telling the PC board to send some more data back.
If I run the console version first, close it out, and then run the forms application everything is good. That is until I close out of everything disconnect the USB plug and try again.
I would like to avoid having to run the console first.
Any ideas where I can start to fix this?
Thanks!
I have been trying to use Visual Basic Express 2010 to create a GUI for displaying data streams via USB port using the FTDI chip and the D2xx driver which interfaces between the computer and a PC board (homemade). When I first started playing with the FTDI setup, I was coding for the console. After I got that working satisfactorily, I switched over to coding for the forms application. This is where the problem began.
When I start running the Forms application, I get no data streams. I can write (at least the FTDI module returns that a byte was written). However, I cannot read. The FTDI buffer is always empty no matter how many times I send/write the byte telling the PC board to send some more data back.
If I run the console version first, close it out, and then run the forms application everything is good. That is until I close out of everything disconnect the USB plug and try again.
I would like to avoid having to run the console first.
Any ideas where I can start to fix this?
Thanks!