Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Serial Data Output Problem
#1
I'm trying to output some data over serial with NETCommOCX. However I can't send 0x00 or 0 through it. I'm guessing that it's a NULL character and QM may skip it?

In the code below, the output only shows 0x52 and 0x80, but no 0x00 or 0xd2. Help?

Code:
Copy      Help
typelib NETCommOCX {4580EBBB-FE3D-45CF-8543-600A62B38A73} 1.4

NETCommOCX.NETComm x._create

VARIANT d = "[0x52][0x80][0x00][0xd2]"

BSTR portsettings
x.CommPort = 3
x.Settings = portsettings
x.PortOpen = TRUE
x.Output = d

x.PortOpen = 0


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)