Vdb2adb
The vdb2adb utility provides a way to convert the .vdb file of a Vsystem database back into an .adb file for an ASCII database, so that you can view and edit an ASCII representation of the Vsystem real-time database channels. You can then generate the output of the modified .adb file back to a .vdb file. You can find the vdb2adb.c source code in the examples applications directory.
When an output file is first opened, the database characteristics that are written to it are taken from the database containing the first channel to be recorded. This means that the initialization information for this file, along with handler and conversion modes, will be the same as those of the first database.
To run Vdb2adb
-
Enter the following at the system prompt:
vdb2adb [channel_spec] [output_file]
Parameters
The first parameter is a <database::channel> specification that can include wildcards.
The second parameter is the file that the generated .adb file is written to. If no file is specified, a file new_database.adb is written in your login directory.
Qualifier
The -one qualifier enables you to place one keyword per line in the.adb file. Without this qualifier, Vdb2adb groups keywords and puts several on a line of text.
Examples
The following shows example applications of the Vdb2adb utility:
vdb2adb daisydb::demo:real_out*
Writing to file : sys$scratch:new_database.adb
DEMO:REAL_OUT1
DEMO:REAL_OUT10
DEMO:REAL_OUT2
DEMO:REAL_OUT3
DEMO:REAL_OUT4
DEMO:REAL_OUT5
DEMO:REAL_OUT6
DEMO:REAL_OUT7
DEMO:REAL_OUT8
DEMO:REAL_OUT9
-->10 channels processed
vdb2adb vscr_test_db::demo:* demo.adb
Writing to file : demo.adb
DEMO:BINARY_IN1
DEMO:BINARY_IN2
DEMO:BINARY_OUT1
DEMO:BINARY_OUT2
DEMO:INTEGER10_TEST
DEMO:INTEGER_IN1
DEMO:INTEGER_OUT1
DEMO:REAL_HIST
DEMO:REAL_IN1
DEMO:REAL_IN2
DEMO:REAL_OUT1
DEMO:REAL_OUT2
DEMO:STRING_10
DEMO:STRING_ DEMO:TIME_1
-->14 channels processed
vdb2adb
Enter channel specification ( . to quit )
<channel spec> [optional output file]
->daisydb::*theta* first.adb
Writing to file : first.adb
THETA0
THETA1
THETA_ARRAY1
THETA_ARRAY2
THETA_ARRAY3
-->5 channels processed
Enter channel specification ( . to quit )
<channel spec> [optional output file]
->daisydb::*binary* second.adb
Writing to file : second.adb
DEMO:BINARY_IN1
DEMO:BINARY_IN2
DEMO:BINARY_OUT1
DEMO:BINARY_OUT2
-->4 channels processed
Enter channel specification ( . to quit )
<channel spec> [optional output file]
->daisydb::demo:string_10
DEMO:STRING_10
-->1 channels processed
Enter channel specification ( . to quit )
<channel spec> [optional output file]
->vscr_test_db::*integer*
DEMO:INTEGER10_TEST
DEMO:INTEGER_IN1
DEMO:INTEGER_OUT1
INTEGER_ARRAY_1
INTEGER_ARRAY_2
INTEGER_ARRAY_3
-->6 channels processed
Enter channel specification ( . to quit )
<channel spec> [optional output file]
->.
exiting...