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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to transmit text data in com1 under windows 2000

Status
Not open for further replies.

glui

Programmer
Mar 4, 2003
1
PH
Hi,

I am trying to connect a customer display in the serial port. I have a windows 2000 OS. In the DOS prompt by typing "ECHO > com1" i do get a reponse from the customer display. How ever when i run it on Clipper using line codes;

set device to print
set print to com1
@00,00 say chr(27)+'QA'+"PRINT TEXT"+chr(13)

I get the reply Printer not ready. I also do get the same message when I try it in foxpro 2.6.

What should I do to access the com port in windows 2000 DOS prompt?..I need help. tnx.
 
If you have Clipper Tools there is a comms section or there is a free IOLIB on
With Tools, in its simplest form you just:
Com_Open(nPort)
Com_Init(nPort,nBaud,cParity,nData,nStop)
Com_Send(nPort,cData)

Com_Close(nPort) // when done Ian Boys
DTE Systems Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top