06-23-2011 10:07 AM
I have a cRIO-9073 that I communicate with through shared variables. The PC I am using has 2 Ethernet cards, one for the company network and one to communicate with the real time system. I can host the shared variable engine on the real time controller and that works. When I host it on the PC, the real time controller cannot see the shared variables. Ideally, I would like to host it on my PC and have the shared variable accessible from my private network and the company one. Is this possible?
06-26-2011 06:40 PM
Hi Ernie,
I believe what you're looking for can be found here:
You need to specify that the Shared Variable Engine (SVE) will use your private network's ethernet card.
Regards,
06-27-2011 09:56 AM
I saw that note, and it may work. What I was hoping to see is how to set the adapter at runtime and if I could have it serve 2 different Ethernet ports. I moved the shared variable engine to my RT system, so it is working now. I use USB to Ethernet adapters, so my Mac address can change frequently. My idea Scenario, for deployed systems, is to have the PC run the shared variable engine and have the RT on a private network. I wanted to be able to write the shared variables either from the deployed program, through the shared variable engine on the deployed PC, or from my desktop PC for debugging.
06-28-2011 06:21 PM
Hi Ernie,
You may be able to. Based on the article that I referenced below, we can see that the SVE will read that INI file. So, it would require the following steps
1) Modify the INI file to point to other ethernet card
2) Stop SVE service
3) Start SVE service
4) Repeat process each time you want to switch it.
It would be an involved process, and there will be many periods of waiting because of stopping and starting the service. You would also need administrative privileges. To add to it, there is no guarantee that it'd work, but I wanted to throw out some ideas for you
Regards
06-29-2011 07:31 AM
Thanks for the tip. For now, I am going to have the shared variable engine on the real time controller. It has only one Ethernet port, so their is no confusion. Being able to easily select a Ethernet card in future versions would be a nice feature. A lot of times you don't want the real time controller on the company network. Having the shared variable service multiple cards would be desirable also. Thanks for looking into it.