Dbget
- Last UpdatedNov 02, 2023
- 1 minute read
To obtain a field of RealTime data, query the RealTime database (RTDB) using dbget.
Syntax
dbget [-t] <table.ptname.fldname>
dbget options and parameters
|
Parameter |
Description |
|---|---|
|
table |
This parameter indicates the name of the table. |
|
ptname |
This parameter indicates the name (or record number) of the record. |
|
fldname |
This parameter indicates the name of the internal field. |
|
-t |
This parameter forces terse output (optional). |
Example
dbget analog.anal.curval
dbget analog.33.curval
dbget status.status1.cursta
Normally dbget gives verbose output. For example, dbget analog.1.curval returns:
DBGET: analog.1.curval = 120.000000
When the optional -t argument is used, dbget gives a terse output and only prints the value.
For example, dbget -t analog.1.curval returns:
120.000000