Input taken from a file
- Last UpdatedJan 13, 2023
- 1 minute read
- PI System
- PI Server
One of the most powerful features of piconfig is its ability to be used in batch processing. By using the and commands, you can use piconfig to write scripts that perform complex operations.
The input file format is a simple text file containing a list of commands. The file can also contain comments, the default character to denote a comment is . For example, consider the following text file, list.inp, in the ..\PI\ADM folder.
* list.inp *
* This PICONFIG script file lists the tagname, pointsource,
* and pointtype for all tags that start with "S" and
* that have point source R
*
@table pipoint
@mode list
@stype delimited
@ostructure tag, pointsource, pointtype
@select tag=s*, pointsource=R
@endsection
You can run the commands in list.inp and get results, as shown here:
* (Ls - ) PICONFIG> @input list.inp
sin:hour,R,Float32
sinusoid,R,Float32
SINUSOIDU,R,Float32
You can also specify list.inp as input while you are running piconfig, by using the character.
C:\PI\adm>PICONFIG < list.inp
sin:hour,R,Float32
sinusoid,R,Float32
SINUSOIDU,R,Float32
PICONFIG 0 Data lines
6 Command line
0 Records in error...
3 Records Listed
Note: You can run the and commands in any mode, List, Create, or Edit.