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
Script-controlled data logging to a data table (1 rec Script-controlled data logging to a data table (1 record)
(0 voti)

AppendRecordToDb is a project designed to demonstrate how to use the RDb.AppendRecord method to add a new record into a data table.

Tags named LongInt, String, and Word are defined within the System device. The values of these tags will be logged to the data table. The following tags are also defined: RecordTimeStamp, which contains the current time (the RSys.Now method), and BlockSamplingData, which is linked to a button in the visualization window (you can enable/disable data logging with this button).

The Data1 data table contains three fields connected to the three tags mentioned above. The sampling method is set to Script-controlled (by RDb.AppendRecord procedure). The Time stamp source property is set to Tag (RecordTimeStamp) and Blocking tag is set to BlockSamplingData. The SaveRecord event script is defined via the Script Manager. This script sets the RecordTimeStamp tag to the current time and calls the RDb.AppendRecord method. To start the script, press the Save record button.

Informazioni

Versione:
Dimensione28.41 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.

.

.