8.4. Configuring Many Bridges

If you only have a few data points to bridge, then using the Bridging option in the Properties window, as described in Section 8.2, “Configuring Bridges” works very well. However, there is a faster way to configure many bridges, using a custom configuration file. Here's how:

  1. First configure at least one bridge using the Bridging interface so you can see the syntax used in the DataHub configuration file.

  2. When that's done, open the Cogent DataHub.cfg file, found here:

    C:\Users\{username}\AppData\Roaming\Cogent DataHub\Cogent DataHub.cfg

    Find the section of the file that looks like this:

    ;;; Point-to-point Bridging
    (bridge "domain:pointname" "domain:pointname" 257 1 0 0 100 0 100)

    This is how each bridge gets stored in the DataHub instance's configuration file, as a bridge command that gets called when the DataHub instance starts up. Your custom configuration file needs to contain one line like this for each bridge that you configure.

  3. Create a custom configuration file, as described at the end of Section 1.8, “Configuration Files”. The content of the file should look like this:

    ;;; My Point-to-point Bridging List
    (bridge "SourceDomain:Point1" "DestinationDomain:Point1" 
     257 1 0 0 100 0 100)
    (bridge "SourceDomain:Point2" "DestinationDomain:Point2" 
     257 1 0 0 100 0 100)
    (bridge "SourceDomain:Point3" "DestinationDomain:Point3" 
     257 1 0 0 100 0 100)
    ...

    [Important]

    You should not try to edit the Cogent DataHub.cfg file. Put all of your custom bridge configuration into the custom configuration file.

  4. Configure the DataHub instance to load your custom configuration file from the Scripting option in the Properties window, as described at the end of Section 3.25, “Scripting”.

  5. Restart the DataHub instance.

  6. Open the Bridging option in the Properties window, and click the Configure Bridges button. You should see all of the configured bridges.

  7. Check the Data Browser. You should see all of the configured bridged points.