I’m trying to use the VACapture component and its OnMessage Event rather than the VAComm OnRxChar Event.
My OnRxChar event is working OK, so I know the comms data structure
- The Start of Packet is SOH (#1)
- The End of Pachet is EOT (#4) .
- The Packet is <Message
If I add a TVACapture component and set the comport, The OnMessage event dose not get triggered.. The OnRxChar has been removed.
I have tried Datatypes of daBinary and daString with no OnMessage triggered.
The settings from my dfm are
object cp: TVaComm
Baudrate = br115200
FlowControl.OutCtsFlow = False
FlowControl.OutDsrFlow = False
FlowControl.ControlDtr = dtrDisabled
FlowControl.ControlRts = rtsDisabled
FlowControl.XonXoffOut = False
FlowControl.XonXoffIn = False
FlowControl.DsrSensitivity = False
FlowControl.TxContinueOnXoff = False
PortNum = 5
DeviceName = 'COM%d'
SettingsStore.RegRoot = rrCURRENTUSER
SettingsStore.Location = slINIFile
Version = '2.4.7.1'
Left = 48
Top = 24
end
object VaCapture1: TVaCapture
Comm = cp
DataType = daBinary
DataStart = '#1'
DataStartCase = dcCaseInsensitive
DataFinish = '#4'
DataFinishCase = dcCaseInsensitive
OnMessage = VaCapture1Message
Active = True
Left = 144
Top = 24
end
What amI missing?