Page 1 of 1

Posted: Sat Apr 13, 2002 3:40 am
by thrust
Hi!

I can connect and send data to my GLK12232-25SM using visual c++. (Using CreateFile, WriteFile) But the display generates unpredictably results when the buffer is full so therefore i suppose the flow control mode would be the apropriate solution.

Any one have some source describing how to do this? I guess it will involve some overlapped communication, but im not sure how to do this.


Any help would be appreciated,

/Oskar

Posted: Sat Apr 13, 2002 10:27 am
by Cheese
The bit in the manual describe how to use flow control pretty well... though if you're really stuck give mat-d-rat a bell, he put it in LCDC.

Cheers,

r.

Posted: Sat Apr 13, 2002 10:34 am
by Mat-Moo
As Cheese says, in the manual there are control codes yo usend to turn on/off flow control - but you must rememebr to do that on the com side too. I just change a couple of parameters on the comport control I use so I can't really help any more than that.

Posted: Sat Apr 13, 2002 2:18 pm
by Henry
Here is some C source code...

http://www.matrixorbital.com/faq/ex4.htm

Posted: Thu Apr 25, 2002 11:56 am
by thrust
Hi again!

The problem is not really how the commands on the diplay works, rather how to implement it under Win32.

I have something that almost works using overlapped communication and a thread that waits for signals from the display. The problem is the reading thread behaves okay in debug-mode but produces really strange results in release-mode. Another problem is that the reading thread takes almost all processor cycles. Any help on how to solve this would be apreciated.


Thanks in advance,

/Oskar Sj