LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the ip address of shared variable library

I am using a Labview VI to talk with a RT VI on cRIO 9004 controller by using shared variables.  These two VIs exchanges messages by reading/writing the shared variables.  The problem is, when I created the project, each VI has their IP address specified: RT VI has the IP address of cRio 9004 controller, and LabView VI has the IP address of host computer.  So, they always try to find the other side on that specific IP address.  However, after I compiled the VI to stand-alone executables, they need to be deployed on machines with different IP address settings.  So, my problem is, how can I programatically change the IP address of shared variables?
More specifically, since the IP address of 9004 controller can only be changed through MAX and shared variable will be hosted by crio controller, I just need to tell Labview VI on host  computer what the IP address of crio controller is.  So, how can I tell host computer the ip address to find crio controller and shared variables?
0 Kudos
Message 1 of 5
(5,658 Views)

Hi LyLee,

      Sorry if I'm misunderstanding, but can you read this info from an INI file, or pass it as a command-line parameter?

Cheers.

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 5
(5,633 Views)
Hi,
The problem is that when I created the shared variables in VI, they are already automatically configured by Labview to read from those ip addresses. Say, the host computer is 111.111.111.111 in project , then the shared variable read in the client vi (on another computer with address 111.111.111.222)will always try to read from ip address 111.111.111.111. But now that I want to deploy the program to a  host computer with address 222.222.222.222,  how can I tell client vi to read shared variables from 222.222.222.222 instead of 111.111.111.222?
0 Kudos
Message 3 of 5
(5,472 Views)

Hi LyLee,

      I probably shouldn't have replied to this thread, but if we're lucky this might be what's needed. Smiley Happy

Cheers!

PS, I don't know who 1-starred you, but it looks like your recovering! Smiley Wink 

Message Edited by tbd on 08-27-2007 01:29 AM

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 4 of 5
(5,430 Views)
Lylee,
 
Please take a look at the following links.  The first describes how to distribute your application to multiple targets when using shared variables.  The others are explaining alternate ways to change the IP address of a controller.
 
How Do I Distribute a Real-Time Application with Shared Variables to Multiple Users?
 
How Do I Change the IP Address of a RT Series Controller (FieldPoint, cRIO, etc) that is not on the Local Subnet?
 
Real-Time Target System Replication Tool
 
Can I Programmatically Assign an IP Address to My Real-Time Target?
0 Kudos
Message 5 of 5
(5,388 Views)