LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with shared variable on labview RT

Hi everybody,

I encounter a problem with shared variables on Labview RT.


I'd like to share some variables between HOST and RTOS.

I've put my library under RTOS in the project explorer. In each VI I need to read or write a shared variable, I have put a shared variable and linked it with the correct shared variable. but there are some problems.


For example , I've created a U64 shared variable. It is write in an RTOS vi and it is read on the host by another vi. When I deploy the host vi, It returned an error : -2147467259.  The shared variable is not found.

If I move the shared variable library to the host It works!!! but at this time, the RTOS vi doesn't work!!!

How do you explain that??? Have you got any idea to correct these error?

Thanks a lot !!!

0 Kudos
Message 1 of 4
(3,138 Views)
This morning, I remarked that the error message during deploy is before the first shared variable deployement.

Extract:
"
Deploying NI_Variable_RT.lvlib: lvvar_RTSinglePointCreate U64.vi
(Already deployed)
Deploying Shared_Variable.lvlib \\192.168.1.1\
Shared_Variable deployement failed (error:-2147467259).

Deploying Shared_variable.lvlib: Time_from_beginning
Deploying....
"

I've got 16 shared variable and in the list there are 16 variable well deployed. the error message is in blog like extract.


I've checked that Xp firewall is desactivated.


ANY IDEA????

thanks
0 Kudos
Message 2 of 4
(3,128 Views)
Hi,
Do you have the "Network Variable engine 1.0.0" and "Variable client support 1.0.0" installed on the RTOS. You can verify it going to Max > remote systems > software.
If not, install them in the RTOS going to Max > remote systems > right click on software > Add software.

Johan G.
NIF



0 Kudos
Message 3 of 4
(3,111 Views)

Hi,

Yes, they were both installed.

I've solved my problem!

After many tests, I still had no solutions.

 

In order to solve my problem, I've format my target.

And then it works!!!

0 Kudos
Message 4 of 4
(3,105 Views)