11-30-2007 09:58 AM
When using the Application Builder to create either a stand-alone application or an installer, you can choose to include or exclude project-defined tasks, channels, and scales.
To create an application, complete the following steps:
Now I used the DAQ Assistant in my LV program. The scales and tasks that were created using teh DAQ Assistant do not show up in MAX but they do show up in the Project Explorer.
I Assumed they would be automatically included in the build as the daqmx.ini file is being created and included in the data directory of the build.
Is this correct or do I also have to create the tasks and scales in MAX as the instructions here say?
When it runs fine, are you running the built executable or the VI on the development computer? Try including the hardware configuration from MAX in the installer as stated above.
Both the EXE and the VI run fine on the development computer. I am even using the exact same USB-DAQ, moving it from computer to computer.
On the target computer the program runs without errors but the program just does not operate, the analog output stays at 0V and the analog input constantly displays 0V.
If you scroll back a few you will see I have included screen shots of my code, MAX, and the Project Explorer.
11-30-2007 04:09 PM
I Assumed they would be automatically included in the build as the daqmx.ini file is being created and included in the data directory of the build.
Is this correct or do I also have to create the tasks and scales in MAX as the instructions here say?
The instructions there do not say to create tasks and scales in MAX. Unless I'm heavily mistaken, it should be fine to create the tasks from the Project. They will not show up in MAX if you do it this way. In the LabVIEW help there are sections on importing to and from MAX for tasks defined in a Project.
From the information included about creating an Application, it did not explicitly state that device information was included with the DAQmx tasks. The creating an installer did state that device information will be saved when including device information.
This may not be a necessary step, but it is necessary to check that the device information in MAX on both computers are identical (this does not mean that the tasks are identical, only devices and interfaces). You only provided a screenshot of MAX for one computer. Do you have other devices in MAX on your development machine? Could you provide that screenshot as well? If you have a service request open on this issue, could you also provide it? Thanks
11-30-2007 05:34 PM
I have a service request open on this 1081553
The person I talked to today basically advised against using the DAQ Assistant and modifiing one of the Labview example VI's
This is the first device of this type I have had to use NI-DAQ with so I am at a total loss here.
12-03-2007 11:24 AM
12-03-2007 03:02 PM - edited 12-03-2007 03:05 PM
Now it's working?
I do not know how or why as I have changed nothing on the target machine.
I built and transfered the program you attached and it worked, so I ran my program and it worked too.
I just hope it stays working...