LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared Variables not working between TPC-2230 and Host PC / CompactRIO

I want to implement an HMI on a TPC-2230 that will be connected to a CompactRIO-9030.

 

I've been reading in the forums that the proper way to do this is through Shared Variables.

 

Naturally, before implementing the complete HMI with all the n variables I intend to control from the TPC-2230 to the CompactRIO, I want to make sure that the basic operation of the Shared Variables is carried out successfully with a very simple example.

 

This is what I have done so far:

 

1- I installed the Run-time Engine 2017 SP1 (32-bit) in the TPC-2230 and LabVIEW RemoteDevelpment 2017. (I'm using LabVIEW 2017 (32-bit) on my Computer and cRIO)

 

2- I created a new project

 

3- I created a library with the variable "control" that I am going to share between the two devices.

 

4- I create two VI within the project:


- Main_Computer.vi: Contains a while loop where a waveform chart receives the value of the Shared Variable "control".- Main_TPC.vi: Contains a while loop where you have a numeric control that sends the value to the Shared Variable "control".

 

5 - I executed both VIs, effectively, the variable is shared among them and the changes in the waveform chart are reflected.

 

6- Then, under Build Specifications -> New -> Application (EXE), select the VI Main_TPC.vi source. And in the "Shared Variable Deployment" tab, I check the "Deploy Shared Variables at application execution" option.

 

7- Once compiled, I send the folder containing the executable to a directory of my TPC-2230.

 

8- I run the executable in the TPC-2230 (here I get a deployment dialog, which is carried out successfully).

 

9- I run the VI Main_Computer.vi from my PC.

 

Unfortunately, when making changes in the Shared Variable in the TPC-2230, you don't see the changes reflected in the Vi that runs in the computer.

 

I already did the following verifications:

 

1- The two computers are in the same network


2- I can ping between them from the Command Prompt


3- I already verified that the "NI Variable Engine" service is running in both teams.

 

And well, that's all I've done. I thank you in advance for all the help you can give me.

 

Pablo.

 

PS: Sorry for occassional bad english.

0 Kudos
Message 1 of 2
(2,211 Views)

Hi,

 

If I understand this correctly, you've deployed an executable and enabled remote debugging. The changes you make to the executable on the deployment PC/TPC are not reflected on the development PC - is that correct? 

 

If so that's completely expected. The files aren't linked.

0 Kudos
Message 2 of 2
(2,179 Views)