Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
2 ratings:
 3 out of 5   

How Can I Move DAQmx Items from MAX into My LabVIEW Project Explorer?



Primary Software:
Primary Software Version: 8.6
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
Certain DAQmx items, including tasks, channels, and scales can be included as part of a LabVIEW project file (*.lvproj) so that the project can be moved from system to system without having to transfer the Measurement & Automation Explorer (MAX) configuration as well.  If I already have such items defined in MAX, how can I move them into my LabVIEW project without having to re-create them from scratch?

Solution:
To move already existing items from MAX into LabVIEW, you must:
  1. Open MAX and select File»Export
  2. Select .ini in the File type drop down list
  3. Click next
  4. Check all items you wish to transfer
  5. Click export
  6. In LabVIEW Project Explorer, right-click My Computer and select Import»Import NI-DAQmx Configuration.
  7. Select the .ini file and click import
Important Note: Hardware items are included in the .ini file even if you don't check them in the export wizard.  As of LabVIEW 8.6, these items are not currently supported in the project explorer, so if you attempt to import the .ini file you will receive the following error:

Error -201074 occurred at _DAQmxImportConfig.vi

Possible reason(s):

Measurements: Import operation supports tasks, channels, and scales only, but a hardware object was found in the file.

Remove the hardware objects from the input file.


To rectify this, you will need to open the .ini file in a text editor (such as MS-Notepad) and delete any section that contains unsupported items (For example: sections beginning with [DAQmxCDAQChassis], [DAQmxCDAQModule], etc.).  Once this has been done, you should be able to import the .ini file into project explorer.

Related Links:
KnowledgeBase 2GJJ9SY1: Saving the System Configuration in Measurement & Automation Explorer (MAX)

Attachments:





Report Date: 09/04/2008
Last Updated: 09/04/2008
Document ID: 4P3DQD8A

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit