Example: Restarting the iFIX collector Using a Heartbeat

Overview

Many applications commonly use a heartbeat to indicate when a program stops. If you want to use a heartbeat with the iFIX collector, you need to configure it through Historian Administrator and the iFIX Database Manager.

In the iFIX Database Manager, configure this address to an Analog Output (AO) block and use a separate Program (PG) block to check the status of the collector heartbeat output and restart the collector if it stopped. Then, in Historian Administrator, define a Heartbeat Output Address on the Advanced section of the Collector Maintenance page for the specified iFIX collector

Once configured and started, the Historian iFIX collector sends a value of 1 to the specified Heartbeat Output Address every 60 seconds. If that heartbeat value is not sent, then iFIX detects this status and restarts the iFIX collector.

If your iFIX database PDB is quite large, you may need to increase the Delay Collection at Startup field on the Advanced section of the Collector Maintenance page in Historian Administrator. Doing so prevents excessive collector log entries if Historian cannot obtain a value before it initializes the source address.

In this example, an iFIX collector runs on NODE1 and the heartbeat output address is NODE1.HOA_2.F_ CV. We create an Analog Output Block is named HOA_2 and the Program block is named HB_HOA_1 in a new iFIX database. There are two parts to this example: configuration in iFIX and then Historian Administrator.

Part A Configuration in iFIX

Follow these steps to configure the heartbeat for an iFIX Data Collector:

  1. Start iFIX.
  2. From the iFIX WorkSpace, open the Database Manager.
  3. Select New from the Database menu.
  4. Select Add from the Block menu. The Select Block Type window appears.
  5. Select AO and select OK. The Analog Output window appears.
  6. Enter HOA_2 as the Tag Name and select Save.
  7. Select Add from the Block menu. The Select Block Type window appears.
  8. Select PG and select OK. The Program window appears.
  9. Enter HB_HOA_1 as the Tag Name for the block.
  10. (Optional) Enter a description for the tag name.
  11. Enter the programming statements shown in the following figure for lines 0 through 8.
  12. Enter the programming statements shown in the following figure for lines 0 through 8.
  13. Select Save. A message box appears asking you if you want to put the block on scan.
  14. Select No.
  15. Select Reload from the Database menu in the iFIX Database Manager. The Reload window appears
  16. Select the database you currently have loaded and select Reload. A message box appears to confirm the reload.
  17. Select Yes to continue.

In about a minute, you should notice the iFIX collector start. The status of the Collector should change on the Collector Maintenance page of Historian Administrator.

Part B Configuration in Historian Administrator

Follow these steps to configure the heartbeat in Historian Administrator:

  1. From Historian Administrator, select on the Collector Maintenance page.
  2. Select the iFIX collector.
  3. Select Advanced.
  4. Enter NODE1.HOA_2.F_CV in the Heartbeat Output Address field as shown in the following figure.

  5. Select Update.