Questo sito utilizza i cookie per migliorare servizi ed esperienza degli utenti. Se decidi di continuare la navigazione consideriamo che accetti il loro uso.

Panoramica Cerca Sopra
Dettagli del download
Reading data from a device as Reading data from a device as text
(0 voti)

Generic_SimpleText is a project designed to demonstrate how the Generic device is used to read data from any device in the form of a text string. A device named Generic1 is defined via the Device Manager. Within the device, several special tags whose values are used for the communication are defined.

The InCount tag's value specifies the number of characters (bytes) received by the tag of type Input buffer.

The InBuffer tag is an array of bytes containing received data.

The InString tag is a string containing received data in a text format.

The OutCount tag's value specifies the number of characters (bytes) sent from the tag of type Output buffer.

The OutBuffer tag is an array of bytes containing data to send.

The Control tag's value is used to control sending data.

In this example project, no data is sent, the Control and OutCount control tags are only used to open the communication port.

The main visualization window contains a button used to open the communication port. To do so, the Control tag's value is set to logical 1 and the number of bytes to send in the OutCount tag is set to 0 via a script.

The two Display components are used to show the received character count and received data in the form of a text string.

The other button is used to reset the received character count and delete the input buffer.

Informazioni

Versione:
Dimensione27.78 KB
Downloads0
Lingua
Licenza
Autore
Sito Web
Prezzo
Creato24-08-2015
Creato da
Modificato il24-08-2015
Modificato daroby

Solo gli utenti registrati e loggati possono scaricare questo file.

.

.