Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Control a running RT VI through Ethernet sbRIO9632

Hi,

 

I'm developing the Control Unit of a Electric Race Car.

I did already the FPGA implementation which is almost the whole semantic.

I designed a RT VI which just opens the FPGA VI and is connected to all the Controls and Indicators through the FPGA read/write control of the FPGA vi.

 

Now I defined the RT Host VI to run at startup.

 

The Problem is now, that i cant connect to the RT Host Vi because it is already running. But this is very important for our project, because we need to make changes of the parameters(FPGA Controls) on the fly. And it is not convinient to start the vi manual via ethernet.

 

How can I connect to a RT Vi which is already running and change the Value of the Controls. If i dont connect it must work to with default values.

 

Another feature which would be nice is the possibility to save the changes of the controls in order to be the default values at the next startup.

 

I hope you can help me with that,

 

Regards Lukas

0 Kudos
Message 1 of 3
(3,341 Views)

Hi Lukas

 

As you described correct it is not possible to open a connection with a running RT VI.

 

So when you like to change some values you have several possibilities to communicate between the Host VI and the RT VI:

 

1. Shared Variables

2. TCP/IP

3. UDP

 

On our homepage (ni.com) you can find a lot of examples about this issue:

 

Basic Real-Time Network Communication Using Shared Variables

 

Real-Time VI to Host VI Communication Methods

 

Hope that helps and have a nice day.

 

Regards

Pixar

 

 

0 Kudos
Message 2 of 3
(3,324 Views)

You can open refrence to running FPGA.vi from your host PC, connected to your RT system.

After getting refrence of FPGS.vi, you can directly Read/Write its control/Indicators values.

Please see attachment for more details.

 

0 Kudos
Message 3 of 3
(3,315 Views)