TCPmaker : Visual Tour    How Variables and Controls Work Together  

But What if I Want to Send or Receive a String?

Certain TCPmaker Controls are designed to send or receive strings.  We call these Communication Controls, and they include:

Mt - Multi-line Text control (for strings sent to the PC)

It - Input Text control.  Intended to let you type and send strings to the micro device, but can also display strings sent from the micro to the PC.

Tx - Text control, meant to be static text for titles, but micro can send strings to it for display of warnings or whatever you need.

TCPmaker will declare (in the generated micro code) a character array for each of these Communication Controls, with the same name it gave the control itself (e.g. It1), and a matching transmit flag (e.g. It1TxFlag) to use for sending the contents of the character array to the PC.

In the case of an It control, which is designed to send a string to the micro device, TCPmaker will also generate a receive Event Handler that will be called whenever the It sends a string to the device.

 
  

11 of 12
Copyright Notice and Author Information