01-23-2012 10:13 AM
Hello LabVIEW community,
I created an executable to run on a computer that does not have LabVIEW. I installed the hardware drivers on that computer (my DAQ hardware is "installed and ready to use", and detected by the computer upon plug-in). The problem is, that when I start the .exe file, all my DAQ channels just read 0. The code acts as if the DAQ is not even plugged in, or is unrecognized.
I tried the same executable on the computer where the .exe was created, and the signals are nicely displayed.
Is there anything special that must be done when creating executables, so that the DAQ channels are detected on every computer? Is this perhaps a matter of configuration per computer?
Thank you in advance for your help!
Solved! Go to Solution.
01-23-2012 10:40 AM
Are there any errors on your DAQmx functions that you aren't seeing because your code is discarding the errors and not showing them?
Try putting some indicators on the error wires after the DAQmx functions. Rebuild the application and try again. See what the error indicators say.
01-23-2012 10:47 AM - edited 01-23-2012 10:48 AM
If you are using DAQmx tasks or channels defined in MAX, then you need to export your MAX configuration to the target PC as well. Your installer can be set up to handle importing MAX settings during the install on the target PC.
You should also follow Ravens advice and make sure you implement error handling.
01-30-2012 12:26 PM
Thank you for your help!
I forgot that I was using a custom scale for my data (the error message helped me remember - thank you Ravens Fan for the suggestion).
I exported the hardware configuration per Wayne. C's suggestion. The following article was helpful:
digital.ni.com/public.nsf/allkb/12288DEB3C6A185B862572A70043C353