Please enable JavaScript to view this site.

DAQFactory User's Guide

Navigation: 4 Expressions

4.11 Specifying Connections in Expressions and the Default Connection

Scroll Prev Top Next More

Because DAQFactory can have multiple connections, and two different connections could have some of the same object names, you must specify the connection name for the desired object as well.  The format is ConnectionName.ObjectName.  You can specify one connection to be your default connection.  When you create a new document, this is the Local connection.  You do not need to specify the connection name in front of the object name if the object is on the default connection.  

Note: this only really matters if you are using DAQFactory networking to connect two copies of DAQFactory over your LAN.  If you are just running one copy of DAQFactory you should leave the default connection as Local.

To change the default connection:

1.  In the workspace, click on the name of the connection you would like to make the default.

This will display the connection view for that connection.

2.  Check the box next to Default?.  

You do not need to hit apply, the change is immediate.

Remember, V, even though it only has channels and no other objects, is also considered a connection.

Application: In addition to making it easier to enter object names in expressions, this method also makes it so you can toggle a display between different connections simply by changing the default connection.  For example, if you had several different locations taking data from the same sensors with the same channel names, and you were in a central location connected to both remote computers, you could create a single set of screens referencing the channels by name without specifying the connection, and then simply switch the default connection between the two remote computers and all the screens will update with the appropriate data.