From: [EMAIL PROTECTED]
Date: Wed, 09 Aug 2006 20:15:44 +0000

On Win2k I have the serial output of a piece of equipment equipment connected to Com1 and amd trying to read it via the serial control, but I seem not to be getting anything. It's been about 15 years since I played with thins kind of stuff so I may be missibg something.

I've got the instrument and serial port configured the same way witj regard to baud rate, DataBits, parity and FlowControl as far as I can tell. Until I matched them teh instrument woudl not send data and it does now... But I don't get anything from the serial control.


In Window open:
  Serial1.SerialPort=System.SerialPort(0)
  MsgBox Serial1.SerialPort.Name ' Shows COM1
  If Not Serial1.Open Then MsgBox "Can't Open Port" ' does not come up

In Event Serial1.DataAvailable:
EditField1.Text=EditField1.Text+ Me.ReadAll()

In Event Serial1.Error
  MsgBox "error: " +Str( me.LastErrorCode)


When I transmit data from the insrument (it says it sent 15 lines) nothing shows up in the editfield but neither does the error event fires

BTW same thing happens in Hyperterm when I set the port parematers the same way...

What am I missing?

Thanks
- Karen


Maybe check that you don't need a null modem cable, or that the device is expecting the handshake lines to be a certain state? A breakout box can be invaluable in order to see that a device is actually sending, by looking at the LEDs (also that your handshake lines are correct).

--

---
Chris Smolinski
Black Cat Systems
http://www.blackcatsystems.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to