11-29-2007 12:59 PM
11-30-2007 06:29 AM
If the scales are setup in the LV program, and if this LV program is included in the EXE, these scales must be available ...
If the scales are setup directly in MAX, you must realize an export then an import on the target computer.
12-03-2007 11:50 AM
Hello RTSLVU,
Winifred is correct. I just wanted to expand on his post.
When distributing a LabVIEW application that uses custom scales, you must ensure that the remote computer that the application will run on has information about these scales. Though there are many ways to export a custom scale (or other information from Measurement and Automation Explorer), it is best to use one of the two methods below for including a custom scale in your application distribution.
1. In LabVIEW 8.2 or 8.5, you can create an executable file and installer using the Project Explorer. Within the project explorer, right click on My Computer then select New » NI-DAQmx Scale. After selecting the appropriate options for your custom scale, the scale will appear under My Computer in your Project Explorer window.
When building an executable, your NI-DAQmx custom scale will automatically be saved under the data folder in the build destination folder. Create an installer to distribute the EXE file and other associated files to a remote machine.
2. You can also import NI-DAQmx custom scales that you have created in Measurement and Automation Explorer (MAX) into your application installer. This may be a good option when you have already created custom scales in MAX, or if you need to import NI-DAQmx task or hardware configuration information in addition to your scale. To include a custom scale in your application installer, create an installer by right clicking on Build Specifications and then selecting New » Installer.
In LabVIEW 8.2 and 8.5, navigate within the My Installer Properties window to the Hardware Configuration category on the left. Select Include hardware configuration from MAX, then click on the Configure button to import selected scales, tasks, and hardware devices in .ini, .nce, or .txt format. You can also use the Import Mode selection to automatically launch the MAX Configuration Import Wizard during installation, or silently update the MAX database without running the wizard.
If you are using LabVIEW 8.0, navigate within the My Installer Properties window to the Advanced category on the left. Under Hardware Configuration, select Include hardware configuration from MAX then click on the Configure button to import selected scales, tasks, and hardware devices in .ini, .nce, or .txt format.
If you are using LabVIEW 7.1, navigate to Tools » Build Application or Shared Library (DLL). Under the Installer tab, check Create Installer and then click on the Advanced... button. Check Hardware Configuration (at the bottom) and then either select a configuration you already have or click Configure to open up the Measurement and Automation Export Wizard to do so.
Another useful resource is Knowledge Base article on exporting and importing files in MAX.
I hope this helps! ![]()