Showing results for 
Search instead for 
Did you mean: 
Reply

Shared variable access after RT change IP address

Re: Shared variable access after RT change IP address

HI Vaibhav and xseadog,

 

    Thanks for the input. I have tried different configurations and here are the summaries:

 

    Use shared variable to communicate between PCs:

 

      You do need two SV libraries. You can either export or import the SV or just copy the original one to create the second one. The subscriber is alias enabled. If the psp url is actual IP address then after changing the publisher IP address the project has to be recompiled or modify the subscriber's SV library. If the psp url is the computer/target name you can just change the alias file.

 

   2. Use shared variable to communicate between PC and real time target

 

      (1). PC is the publisher -- two SV libraries needed

 

     (2). Real time target is the publisher -- either two SV libraries or one

 

          For the later case you can directly drag the shared variable from RT SV library to the host VI diagram and no library need to be deployed on host. You need to recompile the program if IP address of the RT target is changed.

 

     

     Thanks again for help!

 

     Regards,

 

     Tom

 

 

Message 11 of 16 (312 Views)

Re: Shared variable access after RT change IP address

I do not think you need to recompile your windows app if a rt target IP address is changed.  All you need to do is modify the .alias file

http://zone.ni.com/devzone/cda/tut/p/id/9900

Message 12 of 16 (306 Views)

Re: Shared variable access after RT change IP address

hi Tom,

 

seems like you cracked it!Smiley Wink

 

Remember to have the server located on the RT target else you could have timing problems.  Direct access on the RT server but if located on Host then the

request has to be forwarded then returned before any action can be execute on the returning information.

 

xseadog

Message 13 of 16 (297 Views)

Re: Shared variable access after RT change IP address

Hi,

 

Good if mine and xseadog's comments helped you. 

 

The document shared by sachsm was also worth exploring. It has good information, otherwise partly mentioned in another document (Using/Deploying Shared Variables in Executables) as well. 

 

 

Vaibhav
0 Kudos
Message 14 of 16 (288 Views)
Reply
0 Kudos

Re: Shared variable access after RT change IP address

Hi guys, thanks all for help!

 

Tom

0 Kudos
Message 15 of 16 (283 Views)
Reply
0 Kudos

Re: Shared variable access after RT change IP address

Cheers!

Vaibhav
0 Kudos
Message 16 of 16 (277 Views)
Reply
0 Kudos