LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared variables using 2 Ethernet cards

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?

0 Kudos
Message 1 of 5
(3,351 Views)

Hi Ernie,

 

I believe what you're looking for can be found here: 

Deploying Shared Variables to a Specific Network Card

 

You need to specify that the Shared Variable Engine (SVE) will use your private network's ethernet card.

 

 

Regards,

Che T.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,325 Views)

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.

0 Kudos
Message 3 of 5
(3,304 Views)

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

Che T.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,285 Views)

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.

0 Kudos
Message 5 of 5
(3,277 Views)