08-21-2009 05:27 PM
I have read and think I understand the articles on ni.com about using shared variables over a network.
I want to take data from my development machine (D---175) running LabView 8.6.1 Professional and display it using a separate VI on a client machine (WIL---18).
Client machine has LabView runtime 8.6.1 installed.
I created a project with two sets of variables (server and client). The client variables are bound to the server variables.
I set the build so that the shared variable is in the support folder.
When I run both VI’s on the development machine everything goes fine.
When I run the server side VI and the executable on the development machine everything goes fine.
When I run the server side VI on the development machine and the client side executable on the client machine: NOTHING happens. The executable loads fine. I browse to the location where the shared variable is located and the program runs, but there is no data. Everything stays Zeros. I don’t get any error messages (on the client machine), nothing seems to be wrong except I don’t see my data.
The distributed systems manager (on the development machine) sees both computers. I am deploying the variables on both computers. BUT I get an error listed on the value field (no known value, connectiong, disconnected, process failure)
I applied the following fix with no difference (I re-ran the build after the fix)
http://joule.ni.com/nidu/cds/view/p/lang/en/id/1255
My IT department tells me there are no firewalls between machines on our intranet.
What else could I try to trouble shoot this?
08-22-2009 01:56 AM - edited 08-22-2009 01:57 AM
08-22-2009 01:59 AM
08-23-2009 06:05 AM
08-23-2009 08:15 AM
Hi
Keep your code at the server machine and keep the shared variable there. On the client machine use datasocket functions instead to reach data in the server computer (Its quite easy). It doesnt work with executables and shared variables ,there are no support for some commands you need, if I remember right.
Regards
Hans
08-25-2009 08:44 AM
gak wrote:
Why are you using VI on one machine and executable on the other ? why r u not using executables or vis on both machine?
I only have Labview on one machine. The other has just the run time environment. I could go with two exe's but it would only be an added step.
08-25-2009 11:28 AM
ronke wrote:
do you deploy your all shared variables at the program initialize?
Yes. I used the files from here (http://zone.ni.com/devzone/cda/tut/p/id/5715) as a starting point.