Skip to content

AVEVA/AF-SDK-Getting-Started-Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AFSDK Getting Started Guide

Version: 1.1.2

Build Status

This sample uses the AFSDK to accomplish some common tasks with the PISystem.

Requirements

The .NET Core CLI is referenced in this sample, and should be installed to run the sample from the command line.

Replace the placeholders in the appsettings.placeholder.json file and rename it it to appsettings.json.

This sample is written against AF 2.10.

Setting up the environment

  1. Clone the GitHub repository
  2. Start PI System Explorer
  3. File > Database
  4. New Database
  5. Name it: Green Power Company
  6. Ok then close
  7. File > import from file
  8. Select downloaded 'AF Database - Green Power Company.xml'
  9. Select create pi points
  10. Import the data
  11. Navigate to new database
  12. Enable Analysis

Sample

This sample is based off of a PI World class and it includes projects that need to be filled out and completed pojects. The completed solutions to the skeleton projects are just one way you can accomplish the tasks set for the exercise. For instructions about what is expected to be filled go go here. Included in this samples are tests you can run against both the completed samples and the skeleton code to be filled in to see if your code works as expected. The tests are reasonably exact in making sure it was followed, given that timestamps and values are not predetermined.

As indicated above, there is a provided AF database, 'AF Database - Green Power Company.xml', that you need to use for this sample.

Running the Automated Test

From the command line, run:

dotnet restore
dotnet test

This runs all of the tests for all completed solutions. You can also configure this command to run a subset of the tests.

dotnet restore
dotnet test --filter Category~Solution

Depending on the exercise, the test either does a unit test or an integrated test. The unit tests make sure functions behave as expected based on expected inputs and outputs, while integrated tests make sure the whole solution and the underlying functions behave as expected when run in sequence.


For the PI System landing page ReadMe
For the OSIsoft Samples landing page ReadMe

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages