04-19-2018 07:57 AM
I have a USB relay card that I am trying to control. On my computer it works just fine, and does exactly what I want. When I take it to another computer however labview will not find any devices that are plugged into the usb. I have a C script I can run to give basic functionality of the relay card, and when I run that on the other computer it works just fine, so I'm sure that all the divers and everything else needed is installed correctly. I'm attaching a very basic VI that shows the communication. When I click the drop down arrow to select the com port the only option I get is refresh on any computer other than mine. Is there something something you have to add to labview exes to allow them to work with visa?
04-19-2018 08:44 AM
Did you install NI-VISA on the other PC's?
Did you create an installer for your executable after you built the executable? That will usually detect what other files you need and include a VISA installer in the package with the installer for the executable.
04-19-2018 09:04 AM
No I didn't that would explain it. The program is used in house, so I just transfer it with a usb drive rather than an installer. That would be it I'm guessing. I ended up just creating a quick dll and calling the functions in labview to fix it. Thanks for the heads up though.
04-23-2018 09:10 AM
Create an installer that will install the .exe, the LV run-time files (will automatically be in there). Also include the VISA installer and DAQmx installer (assuming you use DAQ devices as well.)
Run that the first time you need to install something on the PC. Then later on, for that executable, or others you make, you can then copy and paste the .exe onto the other PC without having to reinstall since the needed run-time files will already be installed.