You can move the shared variable to a different host without rebuilding the PDA or Touch Panel application by changing the IP address of the shared variable host in the aliases file and manually downloading the aliases file to the same directory as the corresponding application on the PDA or Touch Panel target. You manually download the aliases file in the same way you manually download a PDA or Touch Panel application.
An aliases file has a .aliases file extension. LabVIEW uses an aliases file to map computer names to IP addresses. For example, My Computer typically maps to localhost or the actual IP address of the host computer running LabVIEW. LabVIEW automatically creates a project aliases file when you create a new LabVIEW project, but you must create the shared variable aliases file manually or through the build specification.
The format of the shared variable aliases file is the same as the LabVIEW project aliases file as shown in the following example:
[My Computer]
My Computer="10.0.10.149"
[My Fieldpoint]
My Fieldpoint="10.0.40.150"
When you edit the aliases file to change a shared variable to a different host, the aliases filename must be the same as the application filename. The aliases file also must be in the same directory as the PDA or Touch Panel application. For example, if the PDA or Touch Panel application is My Application.exe, the aliases filename must be My Application.aliases.
To use a build specification to create and deploy the aliases file, place a checkmark in the Deploy aliases file checkbox on the Machine Aliases page of the Build Specification Properties dialog box. You also can use the Machine Aliases page to edit the IP address.