beautypg.com

Using the datalognewfile command to create files – Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 231

background image

Configuring data logging

7–31

Using the DataLogNewFile command to create files

You can also create new ODBC backup files and .dbf log files with the
DataLogNewFile <file> command or the DataLogNewFile *
command.

The DataLogNewFile > command creates a new file set for the
specified data log model. The DataLogNewFile * command creates a
new file set for all data log models that are currently running. Use
these commands anywhere an RSView32 command or macro can be
entered.

If your data log model uses the ODBC format, these commands
create a new set of backup files if RSView32 is logging to the backup
path when the command is issued. If RSView32 is logging to the
ODBC database, RSView32 logs an End snapshot and then a Begin
snapshot when you issue these commands.

If your data log model uses the dBASE IV format, these commands
start a new file set regardless of when new files have been configured
to start in the Data Log Setup editor. The new .dbf file set is created
on the same path that RSView32 is currently logging to.

These commands record two snapshots of data: an End record in the
old file and a Begin record in the new file. If you use the
DataLogNewFile <file> command or the DataLogNewFile *
command, it is not necessary to also use the DataLogSnapshot
command.

If you use short file names, a maximum of 26 new file sets can be
created for each data log model in a given 24–hour period. If you
attempt to create a 27th file, RSView32 continues logging data to the
26th file. At midnight, the sequence starts over again with a new file
set (with the new date). If you use long file names, RSView32 can
create up to 9,999 files per day.

You can give operators ways to issue the command at runtime. For
example, you can create a button object and use the command as the