Press ESC to close · Ctrl+K to open

FactoryTalk View SE - InfluxDB

Configuring InfluxDB to log data from FactoryTalk View SE.

Introduction and initial access

Starting with FactoryTalk View SE version 14, a new data logging system is included alongside the existing ones: integration with InfluxDB, as shown in another example.
After installation, if you check the corresponding port, you will see the access page.

InfluxDB access screen after installation

User and token creation

We are going to see how to create a user and password to access and configure InfluxDB.
These are the commands.

Commands to create a user and password in InfluxDB
Codigo
$influx = "C:\Program Files (x86)\Rockwell Software\RSView Enterprise\3rdParty\InfluxData\InfluxCli\influx.exe"
& $influx user create -n FTAdmin -p xxxxxxx. -o Rockwell

And with this command we are going to extract the token, which is essential for the later configuration.

Command to extract the InfluxDB access token
Codigo
$influx = "C:\Program Files (x86)\Rockwell Software\RSView Enterprise\3rdParty\InfluxData\InfluxCli\influx.exe"
& $influx auth create --org Rockwell --user FTAdmin --all-access

Now, with the user we have created, we are going to log in and check that everything works.

Logging into InfluxDB with the created user

HMIServer bucket verification

When the page loads, we can see that the HMIServer bucket appears, which we added to our project.

HMIServer bucket visible in InfluxDB

InfluxDB connection setup

Now it is time to configure the connection to a new database, which in this example is InfluxDB.

Database connection configuration screen in FactoryTalk View SE

The next capture shows the different types available.

Available connection types during setup

And here is the important part: indicate where the access token was obtained.

Token field in the connection configuration

The connection has now been created.

InfluxDB connection created successfully

DataLogPro configuration

In DataLogPro, once the initial problem has been solved:

Unable to open the DataLogPro because the HMI server is not available. 


We can now open the editor and configure which variables we want to log.

DataLogPro editor to select variables to log

Visualization with TrendPro

For visualization, we need the TrendPro object to connect to InfluxDB and plot the data.

TrendPro object configured with InfluxDB connection

We configure the variables we are interested in.

Variable selection for TrendPro visualization

We are going to look at the system variables, which are the ones we set to log.

System variables logged for trending

And the behavior is correct. Everything works perfectly.

TrendPro showing historical data from InfluxDB

Final verification in InfluxDB

We can also view the records directly in InfluxDB.

Stored records visible in InfluxDB


Was this article useful?

Share on LinkedIn