Jump to content

Shared Variables on Multiple Deployed Targets

Jeff Plotzke

Recommended Posts

I have two targets reading/writing to a set of shared variables -- One is a PC, one is a PXI RT system (but that really shouldn't matter -- The same question applies with two desktop PC targets). I have the shared variable engine running on the RT system. In my LV project, I have the RT system added with it's IP address; everything works great passing data between the two systems. However, when I deploy this system, move the RT system, and the RT IP address changes, will the PC target still be able to communicate? Does the PSP engine try to connect through hostname or through IP address -- and is there a way I can tell the PSP engine which specific IP address to connect to?


Link to comment

I just found an answer. You can do this one of two ways:

You can modify the IP address of the host in the project .aliases file. Shared variables use this file to resolve host name to IP address. However, I'm guessing that this file is only read once when labview starts up, so you'd have to modify this manually before you start the application.


If you have LabVIEW DSC, you can programmably change the host for each shared variable through property nodes. (It looks like you'd have to do this for every shared variable you're using...) Note that it mentions that if this is the only DSC feature you're using (You're not using the alarms, logging, etc.), you don't need the DSC run-time engine to deploy an EXE with this feature -- Although you have to select "Enable Enhanced DSC Run-Time Support" at build time.


Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.