LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO-9104 running .vi across subnets

Solved!
Go to solution

Did they explain why this is necessary in your case? I would think that shared variables could do it all if you used network aliases and the stuff described here http://forums.ni.com/ni/board/message?board.id=170&message.id=363819&query.id=1281544#M363819 it would totally work if you had one pc as the host shared variable library and the other pc had a shared variable library running with all the variables binded to the ones of the first pc like it is described in that post (which may seem unrelated, but the part to pay attention to is the copy of the library with the shared variables binded to the host shared variables)

 

I'd just like to learn when the use of data sockets is necessary.

Message Edited by rex1030 on 11-19-2009 01:56 PM
---------------------------------
[will work for kudos]
0 Kudos
Message 11 of 13
(790 Views)
They did not give me a detailed explanation of why it would not work.  Using Shared variables worked well up to point that you have to connect across the Internet.  I would go as far to say that shared variables work just fine until you are dealing with two completely different IP's.
0 Kudos
Message 12 of 13
(778 Views)

If your problem was occuring with the shared variables only when connecting accross the internet then the solution I posted is the only way to do it exlusively with shared variables. It's definately an alternate solution to your problem you may want to look into in the future because shared variables are really easy to work with and all you have to do to get them to work is :

 

1. Create the shared variables in the usual way on the PC you want to be the host. Deploy the shared variable library.

2. Create a duplicate library (i usually add a suffix to the variable name to differentiate between host and client pc variables) and bind each variable in that library via PSP URL to the other pc. Deploy that library.

 

The only problem with the shared variable method is that as far as I can tell the IP of the host PC better not change. I am not sure if there is a way to dynamically bind the variables in the client PC on the fly to a new IP, but I didn't need to do that.

Message Edited by rex1030 on 11-20-2009 04:22 PM
---------------------------------
[will work for kudos]
0 Kudos
Message 13 of 13
(772 Views)