LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Shared Variables and communicating with cRIO-9023 and Touchpanel TPC-2212

I am using cRIO-9023 and have created shared variables under cRIO and drag drop them into the TPC-2212 VI by enabling the Aliasing(Network published Variables) and using PSP-URL where I have given the IP of the sytem through which my cRIO is connected.

 

The VI is running perfectly under cRIO, but when I build the VI and deploy at TPC-2212 the following error occures.

 

The following target application or shared library is locked: c:\builds\TPC_shared var\NI TPC-2212 Device\My Application\c\ni\Application.exe. A locked file can be a read-only file or have incorrect permissions. LabVIEW cannot build applications that are running or build shared libraries that are called by other applications.

 

The screenshot is attached here for assistance.

Kindly if some know about it let me know.

 

I want to change the real time values while the VI is running from the cRIO and want to observe the values changing through Ethernet connection over the TPC where the Vi is already deployed and running.

Thanks

Download All
0 Kudos
Message 1 of 2
(2,833 Views)

Greetings, Axher;

 

When you say that you have dragged and dropped them into the Touch Panel, do you mean into the block diagram of the TPC? Looking at the TPC device itself, there are no variables therein. 

 

Is any VI running when you are attempting to build the executable that will be deployed to the TPC? If I understand correctly you get the error when you are deploying the executable, correct? I assume you do not see the error if you build a similar executable without the variables (Say, using dummy constants instead of the variables)

 

Would you be able to create a set of variables under the TPC and enable the aliasing in the project itself? Finally, do you see a similar behaviour if you connect to the variables programmatically using the Shared Variable nodes and functions?

 

Finally, do you have a screenshot of the error that you are seeing as well?

 

Anyhow, have a great day!

 

Cordially;

Simon Perez

National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,812 Views)