Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading serial port with Using ZComm

Status
Not open for further replies.

2004RedSox

Programmer
Oct 22, 2004
1
0
0
US
Does anyone have any experience with using ZComm and it's OnDataAvailable event to receive data from a peripheral on the serial port (such as a Keithley Voltmeter with a SCPI RS232 connection)?
I originally sent a read command to the Keithley then had a 2 second delay, then read the data in using the ZComm object such as data = ZComm1->text.
This works on Win95 PC and my coworker had it working on a Win98 PC but it fails (hangs) on my Win98 PC.
I hear that it's not good to use delays in Windows programming so I tried to use Application->ProcessMessage() in my while delay loop.

The Application->ProcessMessages() gets called during the while(1) so Windows doesn't get hung.
It still hangs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top