04-13-2023 09:55 AM
Hi All,
I am trying to run a Labview vi named 10pin(2).vi on another laptop which does not have Labview. I am getting this error (attached) when I try to run the application on the laptop without Labview.
Here are the steps I am following.
Create Installer and Executables. Destination directory and Installer destination(in product information),both are usb drive.Destinations in installer properties ,showing me folder Program files-> Cable testing 10 pin
Install the installer on new laptop and then run the executable.
Can anyone please help?
Solved! Go to Solution.
04-13-2023 10:13 AM
When you build the installer, include the DAQmx driver.
04-13-2023 10:14 AM
Looks like you didn't add the DAQmx Runtime package on your Additional Installers category. I thought it was supposed to handle this automatically these days but I just tried a simple DAQmx app and I had to uncheck the Automatically select recommended installers option and add NI-DAQmx Runtime 19.6 manually. 🤔
04-13-2023 10:17 AM
Looks like you also need to install DAQmx on the laptop.
04-14-2023 07:01 AM
Thanks Everyone particularly NIquist to pinpoint the issue. Even, I was thinking it is supposed to handle this automatically.
But now I have another issue.
The vi acts like it is running without giving any error but it is not doing what it is supposed to do. Even if I remove the USB connection to NI module, it is running and not giving any error(I expected this behaviour). The vi is supposed to just send output and get corresponding inputs.but the program gives negative results as if it is not getting corresponding inputs(whereas the result is positive if I connect the same NI and run the same program on original laptop with labview on it)
The program is not even outputting the signals at the respective pins on NI module.
Is it because MAX is not configured on the laptop?
Appreciate any help.
04-14-2023 07:16 AM
If you have created Task in NI MAX and using the same for Reading DAQmx, You need to import the Tasks to New Laptop from the old one.
04-14-2023 07:26 AM
I guess it is because the device has a different alias name on the development and deployment machine, hence the executable is controlling a different (possibly a simulated) device on the deployment machine. Make sure you are selecting the correct device alias name in your program. Can I Change the NI Device Name in NI Measurement & Automation Explorer (NI MAX)
Alternatively, you can Export/Import the System Configuration in NI MAX
04-14-2023 08:04 AM
Thanks. One more thing I noticed is, the new laptop is probably not even recognizing the USB connection from NI. Its not giving me any signal saying something is newly connected, when I connect the USB from NI modules.(USB port is working fine by itself)Does this have something to do?
Attached is the screenshot of the NI configuration I have in the source machine.Are you referring to the names like cdaq2mod1 which I should change?If yes, what should I change it to?(alongwith the respective changes in the program)
04-14-2023 08:42 AM
Thanks. One more thing I noticed is, the new laptop does not give me any indication when usb connection of NI modules is connected, whereas the usb port is working fine.Does it have something to do with the issue?
Here is the screenshot of NI configuration I have.Do you mean to say I should rename CDAQ2MOD1 which is used in the program? What I should rename it to? (with the same changes in vi as well) How I know what name it has on the deployment machine?
04-14-2023 12:29 PM
Finally I was able to run the vi successfully. Thanks everyone .Really appreciate