This project has moved. For the latest updates, please go here.

One Second Frequency Averager

The One Second Frequency Averager is an action adapter within the openPDC which will take frequency signals as inputs and produce one measurement per second per signal which is the average of all frequency measurements received during that second. This document describes how to set up the One Second Frequency Averager to begin producing these average frequencies.

Creating the One Second Frequency Averager adapter

The One Second Frequency Averager adapter is an action adapter, so we will be defining it as a custom action adapter.
  1. In the openPDC Manager, go to 'Adapters -> Action Adapters'.
  2. Click the 'Clear' button directly above the data grid.
  3. Enter a name for the adapter in the appropriate text box.
  4. From the 'Type' dropdown, select the One Second Frequency Averager.
  5. Several connection string parameters will appear to be required, but default values will be provided by the One Second Frequency Averager and these can be ignored.
  6. Click the 'Enabled' checkbox.
  7. Click the 'Save' button.
  8. An entry for your One Second Frequency Averager should have been added to the data grid. Select that entry.
  9. Click the 'Initialize' button above the data grid.
  10. When it asks if you would like to initialize your new adapter, click 'Yes'.
  11. Click 'OK'.

(Optional) Creating a virtual device

Creating a virtual device will allow you to associate the average frequencies with that device. The device can then be used in filter expressions. While this step is optional, it is highly recommended that you associate a virtual device with your average frequencies.
  1. In the openPDC Manager, go to 'Devices -> Add New'.
  2. Choose a name and acronym for your virtual device and enter them into the appropriate text boxes.
  3. From the 'Protocol' dropdown, select 'Virtual Device'.
  4. If you would like to archive the average frequency measurements, select the appropriate historian from the 'Historian' dropdown.
  5. Click the 'Enabled' checkbox.
  6. Click the 'Save' button.

Configuring the One Second Frequency Averager

  1. In the openPDC Manager, go to 'Outputs -> One-second Average Frequency'.
  2. If they are not already selected, select the One Second Average Frequency adapter and the virtual device that you created from the appropriate dropdowns.
  3. In the list on the right, you should see the frequency measurements that are defined in your system. From this list, select a measurement that you would like to begin calculating averages for.
  4. Click the '< <' button to move that measurement to the list on the left.
  5. Continue moving frequency measurements from the list on the right to the list on the left until all frequencies for which averages are to be calculated exist in the list on the left.
  6. Go to 'Adapters -> Action Adapters'.
  7. In the data grid at the bottom, select the One Second Frequency Averager adapter that you created.
  8. Click the 'Initialize' button above the data grid.
  9. When it asks if you would like to initialize your new adapter, click 'Yes'.
  10. Click 'OK'.

Last edited Jan 7, 2013 at 5:53 PM by staphen, version 6

Comments

No comments yet.