03-03-2021 01:22 AM
I have a Labview 2020 Project that connects to an external PLC over Modbus TCP. I set up the communication using an I/O Server. The modbus communication works great when I am on the development PC, running in either development mode or as an executable. However, the Modbus communication portion doesn't work at all when I try to run this executable on the deployment computer with Labview 2020 SP1 Runtime.
I am did read that the Modbus I/O Server does require either the Labview DSC module, or the Labview Real-Time Module. I only have the Labview Real-Time Module as part of the "Embedded Control and Monitoring Software Suite".
Should this work? Is there another Runtime or Driver that I need to install?
I hope I have attached the right files to allow you to see my I/O server setup.
Thank you
-John
03-10-2021 06:22 AM
Hello,
Yes it should work. Here're some useful links that can help.
Configure Modbus I/O Server Dialog Box
Troubleshooting Modbus I/O Servers
And could You please say are there any error pop-up windows when You're trying to run this executable on the deployment computer?
03-10-2021 12:21 PM
@Mr.Genius wrote:
Hello,
Yes it should work. Here're some useful links that can help.
Configure Modbus I/O Server Dialog Box
Troubleshooting Modbus I/O Servers
And could You please say are there any error pop-up windows when You're trying to run this executable on the deployment computer?
Thank you for your reply. I used those links when creating my I/O server. Sadly there isn't anything there that would help resolve my issue. There are no error pop-ups when i am running this executable on the deployment computer.
I have contacted NI directly last week and put in a ticket. The support person is able to recreate my problem but is still trying to figure out why this is happening.
I will keep you guys posted here with how this gets resolved so it can help someone else out in the future.
03-10-2021 02:46 PM
Some suggestions if you haven't already tried them:
-create an installer from the source project and let LabVIEW automatically determine which components should be installed on the deployment computer, run that installer there
-on the exe build specification, review the shared variable deployment settings used for runtime, there may be something there that isn't set correctly
-NI Distributed System Manager may be useful to help with troubleshooting (gives some visibility to what NI's Shared Variable Engine is doing)
-The Shared Variable Engine system service may need specific Windows user login credentials
-Run things as Administrator
-scrap I/O server route and use one of the other options:
03-10-2021 02:53 PM
@playerm1 wrote:
Some suggestions if you haven't already tried them:
-create an installer from the source project and let LabVIEW automatically determine which components should be installed on the deployment computer, run that installer there
-on the exe build specification, review the shared variable deployment settings used for runtime, there may be something there that isn't set correctly
-NI Distributed System Manager may be useful to help with troubleshooting (gives some visibility to what NI's Shared Variable Engine is doing)
-The Shared Variable Engine system service may need specific Windows user login credentials
-Run things as Administrator
-scrap I/O server route and use one of the other options:
Thank you playerm1 for your reply.
I have tried everything that you listed with the NI support tech.
I rewrote the code using the modbus library instead of the I/O Server. It works great this way.
I am still hoping for a resolution on this issue so I can understand what is going on.
Thank you guys for the support.
-John