LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy Modbus I/O server in multiple library.

I'm using Labview 2009 with DSC. I learn about I/O server with network shared variable by experimenting with Modbus Fundamental project and Modbus Simulator project (LV built in examples). I run both projects in one computer, and the result is OK.

 

Then I try to make a little modification by adding another library and create modbus I/O server with some bound variables on Modbus Simulator project and Modbus Fundamental project. These new libraries and variables are match in both project, with properties same as original libraries, except different modbus address. I run the project, and the result is always "communication failure" on the new variables in Modbus Fundamental. I have try to deploy and undeploy and also restart the computer, and the result is same.

 

I try again with removing original library on both Fundamental and Simulator project, leaves only the new library i've added, the result is OK. This indicate that no problem with new library. Why if both libraries exist the "communication failure" always occurs.

 

Thanks

 

 

0 Kudos
Message 1 of 4
(2,966 Views)

Hi Dalbo,

 

Can you give a more detailed of the error message you get?  Is there a number associated with it?  Maybe you could provide a screenshot.  Are these projects open at the same time?  Are you using them simultaneously?  If you are, this may cause the error, since you're trying to communicate with a device from two different VIs.

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(2,944 Views)

Hi Jareds,

 

Thank you for your response.

 

I think it would be clearer if you open my project file as attached. There are two project folders and screenshoot of the error message.

Yes, of course i open and run them simultanously since this experiment is to demonstrate modbus communication (master and slave).

As i said before,  actually i just made little modification on Labview's example project by add one library with modbus I/O and some variables.

 

Imagine that I want to communicate with multiple modbus devices (slave), in this project there are two modbus slave, ie. the first with address 1 (original as Labview's example) and the second with address 5 (new).

 

Hope you can understand what i mean.

 

Thanks

0 Kudos
Message 3 of 4
(2,934 Views)

anyone can help me....

0 Kudos
Message 4 of 4
(2,885 Views)