From: gangerolv on
I had the same problem as well. First I downloaded and installed the 8.5.1 runtime, and the application wouldn't run, asking for the various dll's.

So then I installed LabView drivers from the CD that came with the USB DAQ board. THe application would run no problem after that.

Not really a good answer for you, just confirming your concern/question.

Thanks,

jp
From: lion-o on
Hi RTSLU,
 



Shouldn't the scales and DAQ assistant automatically be included in the build?


 
From the LabVIEW Help:
Using Application Builder with NI-DAQmx

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:

- <a href="mk:@MSITStore:C:\Program%20Files\National%20Instruments\LabVIEW%208.5\help\daqproject.chm::/CreateDAQTask.html" target="_blank">Create</a> a task, channel, or scale.
- Add the task, channel, or scale to a VI by dragging and dropping the object onto the front panel or block diagram.
- Right-click Build Specifications. Select New�Application (EXE).
- The Application Builder window opens. Refer to <a href="lvhowto.chm::/Building_a_Stand_Alone_App.html" target="_blank">Building a Stand-Alone Application</a> for more information on setting up an application build.
- Select Source Files from the Category list. Move the desired VI to the Startup VIs list box.
- Select Advanced from the Category list. The option Include hardware configuration files is selected by default. If you build with the option checked, daqmx.ini is created in the support directory path. The .ini file contains task, channel, and scale configuration data in plain text format. When you run the application, the application references the .ini file to set up tasks, channels, and scales in the VI.


To create an installer, complete the following steps:

- Right-click Build Specifications. Select New�Installer.
- Refer to <a href="lvhowto.chm::/Build_Installer.html" target="_blank">Building an Installer</a> for more information on setting up an installer build.
- Select Advanced from the Category list. Click Include hardware configuration from MAX. The MAX hardware configuration includes device information, in addition to NI-DAQmx task, channel, and scale configurations.
- Click Configure. The Configuration Export Wizard opens. For more information on exporting a hardware configuration, refer to Measurement &amp; Automation Explorer Help for NI-DAQmx. When you run the installer, the installer references the .nce file to set up devices, tasks, channels, and scales in MAX.



I have two scales and a&nbsp;DAQ Assistant&nbsp;in the project explorer on the development computer.
I don't see either of them in MAX.


To see them in MAX please refer to the "Exporting NI-DAQmx Tasks, Channels, and Scales in a Project" in the LabVIEW Help.


I do not even know how to troubleshoot this since I can move the DAQ back&nbsp;to the develpoment computer and it runs fine.


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.
From: RTSLVU on
Using Application Builder with NI-DAQmx

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:

- <a href="mk:@MSITStore:C:\Program%20Files\National%20Instruments\LabVIEW%208.5\help\daqproject.chm::/CreateDAQTask.html" target="_blank"> Create</a> a task, channel, or scale.
- Add the task, channel, or scale to a VI by dragging and dropping the object onto the front panel or block diagram.
- Right-click Build Specifications. Select New�Application (EXE).
- The Application Builder window opens. Refer to <a href="lvhowto.chm::/Building_a_Stand_Alone_App.html" target="_blank"> Building a Stand-Alone Application</a> for more information on setting up an application build.
- Select Source Files from the Category list. Move the desired VI to the Startup VIs list box.
- Select Advanced from the Category list. The option Include hardware configuration files is selected by default. If you build with the option checked, daqmx.ini is created in the support directory path. The .ini file contains task, channel, and scale configuration data in plain text format. When you run the application, the application references the .ini file to set up tasks, channels, and scales in the VI.

&nbsp;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?




I do not even know how to troubleshoot this since I can move the DAQ back&nbsp;to the develpoment computer and it runs fine.





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.
From: lion-o on
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
From: RTSLVU on
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...Message Edited by RTSLVU on 12-03-2007 03:05 PM