TConnector: hoja de datos

TConnector tiene una amplia colección de interfaces (COM, LPT, TCP, archivo I/O, Bluetooth, ...), que son accesibles a través de una API unificada. El sencillo manejo TCP/IP simplifica las aplicaciones de intranet considerablemente.

Plataformas

  • Control ActiveX® (Compatible Microsoft® ActiveX, basado en ATL)
  • Win32 API
  • Sistemas operativos: Microsoft® Windows® 98 / ME / NT 3.51 / NT 4.0 / 2000 / XP / 2003 / Vista / Server 2008 / Windows 7
  • No soportados: Microsoft Windows 95

Interfaces soportados

Puerto serie / RS232Puerto serie (pe. COM 1-4): lectura y escritura de datos
Puerto paralelo / CentronicsPuerto paralelo (pe. LPT 1-2): escritura de datos
BluetoothBluetooth address (like 1B:F3:E1:10:01:21): lectura y escritura de datos; conexión en modo cliente
TCP/IPTCP/IP (dirección host + puerto): lectura y escritura de datos; conexión en modo cliente
Archivo I/OLectura y escritura de archivo
NULLPeriférico nulo (null device)

Modos de comunicación

  • Síncrona (lectura/escritura)
  • Asíncrona (lectura con evento OnData)
  • Modo Wedge para emulación de teclado (propiedad SendKeyStrokes)

Programa de adquisición de datos, propiedades de objetos

DAQ Software Object Properties

IOTypeInterface Type (None, NULL, FILE, COM, LPT, TCP, Bluetooth)
DeviceSpecifies the exact port to connect with; used with communication types File, COM, LPT
Baud, Data, Stop, ParityRS232 settings; used with communication type COM
XOn XOff, DTRDSR, RTSCTS,
DTRDefault, RTSDefault
Handshaking; used with communication type COM
Host / ServiceTCP/IP host/service (address & port); used with communication type TCP
NoOfBytesMaximum of bytes to receive before an OnData event will be fired.
TimeoutTimeout in milliseconds. After the timeout period an OnData event is fired even if less than NoOfBytes bytes were received. Valid if property Timout_Infinite isn't set.
Timeout_InfiniteTimeout infinite (true/false); determines if a timeout period is set by the value of Timeout_Infinite or there is no timeout (infinite)
PrefixDefines a string that is placed in front of all other data characters sent by the OnData event. It can contain arbitrary ASCII characters and predefined escape sequences.
PostfixDefines a string that is appended to a data package sent by the OnData event. It can contain arbitrary ASCII characters and predefined escape sequences.
UseDelimiterUse delimiter character (true/false), if true the OnData event will be fired immediately when receiving the delimiter.
DelimiterASCII code of the delimiter character; e. g. Linefeed = 10
IncludeDelimiterDelimiter character is part of the data or is to be removed.
SendKeyStrokesIf set, the incoming data is translated into corresponding keystrokes. These characters are simulated as if they are entered on the keyboard (software wedge mode).

Programa de adquisición de datos, eventos y métodos de objetos

DAQ Software Object Methods, Events

Open ()Opens a connection to the device specified by IOType & Device.
Close ()Closes connection.
Read (...)Reads data with maximum length of nBytes within the period defined by timeout.
GetNoOfBytesRead ()Returns the number of bytes received during the last Read method.
ClearBuffer ()Deletes all data from the input buffer.
Write (...)Writes data with length of nBytes within the period defined by Timeout.
StartListen ()Starts asynchronous mode: OnData events are fired when data is received by the specified interface (IOType & Device).
StopListen ()Stops asynchronous mode.
SetStates (...)Set status of interface status line(s).
AboutBox ()Displays about dialog.
EscapeZeroBytes (...)Represent Zero Bytes (binary value = 0x00) as "\0" in the input/output data stream. Avoids truncation of strings by Zero Bytes in COM wrappers (such as used by Visual Basic).
LicenseMe (...)Licensing by program code. After applying a valid license key the demo version is turned into a full version. The insertion of "Demo" into the data stream will be disabled.
Licensing ()Opens the license dialog for manual licensing. After entering a valid license key the demo version is turned into a full version.
OnData (...) Each time when data is received an OnData event is thrown (in asynchronous mode). The data read from the device is returned within the Data argument.
OnStatusChange (...) Each time when a status line changes its state, this event will be fired (in asynchronous mode). The changes are passed as array in the States argument.
OnClose () This event occurs when the server closes the connection (only available for IOType "TCP").
OnError () This event will be fired when an error occurs (only available during asynchronous mode).
TranslateErrorNo (...)Translates the error number given by the OnError event to the corresponding error text.
SetDebugLevel (...)Enables tracing of TConnector's internal activities into a log-file.
GetStates ()Returns an array of actually set states.
SetSingleState (...)Like SetStates(), but only to set a single state.
EmulateKeys (...)Translates an input string into virtual key strokes and puts them into the keyboard events message queue.
UseCodePage (...)Adjusts Codepage to be used for Unicode-MultiByte string conversion.

Características especiales

  • Junto con el programa COM2TCP de TEC-IT', puede construir una red remota para adquisición de datos en serie con sólo unos pocos pasos.
  • El tratamiento de los datos de entrada se realiza fácilmente en el modo asíncrono. Un evento OnData se genera automáticamente cuando los datos son recibidos por la interfaz especificada. Además de este evento puede simular las pulsaciones del teclado con los datos recibidos (modo wedge).
  • Eliminar los caracteres delimitadores (pe. CR/LF).
  • Es posible realizar ampliaciones específicas personalizadas y/o adaptación a las necesidades del cliente bajo demanda.