beautypg.com

Creating a new odbc data source, Creating new files at run time, Using the datalognewfile command – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 588: Creating a new, Creating new files at run time – 10, Using the datalognewfile command – 10

background image

F

ACTORY

T

ALK

V

IEW

S

ITE

E

DITION

U

SER

S

G

UIDE

22–10

• •

2. Click Create Tables. FactoryTalk View automatically creates new data log tables in

the existing database. You can also create tables manually.

3. Set up the rest of the data log model, as described in Help.

Creating a new ODBC data source

To create a new ODBC data source, click the browse (...) button next to the ODBC Data
Source
text box, or use the ODBC Data Source Administrator in the Windows Control
Panel
. Click Help in the ODBC Data Source Administrator window for more details
about creating a new ODBC data source.

You can create the tables for a new data source using either of the methods described in
“Logging data to an existing ODBC data source” on page 22-9.

Setting up security to log data to a remote computer

If you are logging data to an ODBC database that is not located on the computer where
the data is being generated, you must change certain DCOM security settings. For
details, see the FactoryTalk View Site Edition Help.

Creating new files at run time

To create new file sets or ODBC backup files at run time, use the FactoryTalk View
command DataLogNewFile.

If a data log model uses the ODBC format, and if FactoryTalk View is logging to the
backup path, running the DataLogNewFile command creates a new set of backup files.

If FactoryTalk View is logging to the ODBC database, an End Snapshot and then a Begin
Snapshot are logged when this command is run.

If a data log model uses file sets, DataLogNewFile creates a new file set regardless of how
the data log model is set up to start new files. The new file set is created in the same
location that FactoryTalk View is currently logging to.

DataLogNewFile records two snapshots of data: an End Record in the old file, and a
Begin Record in the new file. It is not necessary to use the DataLogSnapshot command
in this case.

Using the DataLogNewFile command

You can use the DataLogNewFile command with either of these parameters:

DataLogNewFile <component> (where is a data log model name)
creates a new file set for the specified data log model.