LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Variable in Distributed Executable problem

I'm trying to create a LabVIEW executable that will read to and write from an OPC server that is running on the same machine as the executable. I have to be able to build the executable on one machine and run it on another, and this is the problem.

I've attached the simplest VI I can come up with (everything is inside one folder, which is zipped). All it does is read the value of one tag and display it, and write the value of a control to another tag. It works when I run the VI on the development PC. It works when I run the executable on the development PC. When I copy the entire folder over to the test PC and run the execuable, it does not work.

Both PCs have the same name and the same IP address (neither is currently connected to a network).
The KEPWare server is set up identically on both machines.
When I created the Shared Variables, I used 'bind to source', so I know they match the server.

I've turned off buffering, I'm using the "Deploy Library" function that matches my DSC module on the development PC, I added "NGwrite_imp.vi" to my support directory in the build file; I've been all over the National Instruments website, these forums, and Google, and I can't find anything else to explain my problem.

What am I doing wrong?
0 Kudos
Message 1 of 2
(3,378 Views)
I see that you have a hard coded path  C:\Documents and Settings\Ron Layko\Desktop\data going into the deploy library VI.
 
Any chance this path is different on the PC that isn't working, particularly since it is related to a user login name?
0 Kudos
Message 2 of 2
(3,332 Views)