I can't help you, it works for me.
EMG
I can't help you, it works for me.
EMG
Local cDataRead:=Space( 10 ) //length of data to read
Local cDCB
Local nComm
//Setup COM port
if ! BuildCommDcb( "COM1":9600,n,8,1", @cDcb )
MsgInfo("BuildComm Error")
endif
if ! SetCommState( nComm, cDcb )
MsgInfo("SetComm Error")
endif
if FlushComm( nComm, 1 ) != 0
MsgInfo("FlushComm Error")
endif
//Read the COM port
ReadComm( nComm, @cDataRead )Jeff Barnes wrote:if ! BuildCommDcb( "COM1":9600,n,8,1", @cDcb )
if ! BuildCommDcb( "COM1:9600,n,8,1", @cDcb )Jeff Barnes wrote:This is what I use to read data from a medical device:
Thanks Enrico .... a slip of the finger ![]()
Robert ... What is ASTM ?
Jeff Barnes wrote:Thanks Enrico .... a slip of the finger
Robert ... What is ASTM ?
Sorry ... I do not have an example of ASTM.
I simply just read the data on the port and process it. I wasn't even aware there was an actual protocol for RS2332 and medical devices.
Everything I'd tried to solve the problem but to no avail! The only thing I said to use FWH2.7.
I only have a few questions:
- Do I need a library hbcomm.lib? If I need where I can find?
- If your example of you doing, what your opinion may be a reason for me not working?
It could be a problem in your FWH release.
EMG
Jeff Barnes wrote:
if ! SetCommState( nComm, cDcb )
MsgInfo("SetComm Error")
endif
favory wrote:
if ! SetCommState( cDcb )
MsgStop( "Error SETCOMM!" )
return .f.
endif
With version FW1.92 everything works without problems! So the problem is FWH2.7 or xHarbour. Why? I don't know! I have another question. how do I make a simultaneous communication with multiple serial ports?