10-24-2018 10:04 AM
I built an application (LabVIEW 2017 32-bit on Windows10) that reads and writes to a specific holding register, using the Modbus Master library that ships with the DCS or LVRT toolbox.
I can successfully use the application by opening the executable on the machine that has LabVIEW installed on it. However, when trying the application on another machine which does not have LabVIEW installed, but only LabVIEW Runtime Environment, then it fails.
I can open the application, but cannot choose a COM-port in the VISA-resource control. When trying to write COM10 (which is connected to a USB/RS485 adapter), still nothing happens, i.e. there is no communication going on. Anybody knows what my problem is ?
Solved! Go to Solution.
10-24-2018 10:07 AM
You need to install the LabVIEW runtime engine and VISA on the target machine. If you create an installer for your application it can do those installs for you as well. You can create an installer in the project.
10-24-2018 10:19 AM
I forgot to mention that I have also made an app that communicates Modbus TCP, and this app will run and communicate successfully with a slave/server on a machine that doesn't have LabVIEW installed...
10-24-2018 10:20 AM - edited 10-24-2018 10:50 AM
@Mark_Yedinak wrote:
You need to install the LabVIEW runtime engine and VISA on the target machine. If you create an installer for your application it can do those installs for you as well. You can create an installer in the project.
Thanks. You wouldn't happen to know if I need the full version ?
(758 MB for NI-VISA 18.0) 😞
10-24-2018 10:50 AM - edited 10-24-2018 10:51 AM
VISA is a NI library that supports the VISA interface. You stated that you are using to communicate over the serial line so that library also needs to be installed. Both can be accomplished with the installer I suggested above.
The other thing I should mention is that the comm port will likely be different on your development and target machines so make your you use the correct comm port on each machine.
10-24-2018 10:54 AM
I'm sorry, I edited my response while you responded back... I have made an installer. I'll test it and accept your solution if successful...
10-24-2018 11:54 AM
SUCCESS !!!