LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with Shared Variables

Solved!
Go to solution

Hello,

I have a project which contains two VI : Read and Write, a shared library which contains a Boolean (published on network, type : Bool, aliases uncheck).

In Write.vi (diagram), there is a button block and a shared var node linked.

The same thing in Read.vi

The aim is to make the .exe working on another PC.

In the project, I have created the installer and the application.

I try to run it on the second PC but it doesn't work.

 

 

Need help.

0 Kudos
Message 1 of 10
(2,910 Views)
Solution
Accepted by topic author Reg_edit

AS2307,

 

Are your read and write VIs both on the same computer hosting the shared variables?  Are both of these VIs working on your development PC and do they work as executables on your development PC?

 

It would be helpful to know exactly what you have done that is working and what you have tried that does not work as there are some caveats with using share variables in executables as discussed in the article below.

 

http://www.ni.com/white-paper/5715/en/

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 10
(2,865 Views)

Hi, thank's for answer.

 

My two VIs are on the same project in the first computer. I have created an installer and an executable which include the read.vi and the library. 

When the .exe is running on the second computer, I launch the write.vi on the first computer and two are deployed

0 Kudos
Message 3 of 10
(2,837 Views)

Hi, thank's for answer.

 

My two VIs are on the same project in the first computer. I have created an installer and an executable which include the read.vi and the library. 

When the .exe is running on the second computer, I launch the write.vi on the first computer and two are deployed

0 Kudos
Message 4 of 10
(2,837 Views)

If you run the executable on the first computer, do you still have the problem?

 

How are you selecting the SV?  Is the path a local path or set to a specific IP?

0 Kudos
Message 5 of 10
(2,821 Views)

Hi,

 

If I run the executable on my computer I still have the same problem.

I don't know how to select a specific form for the Shared Variables, I created them in the project's library and selected the type, that's all

0 Kudos
Message 6 of 10
(2,804 Views)

You should probably attach the project if you want help debugging it.

 

If you aren't selecting a path, how would you expect the program to know where on the network the sv is?

0 Kudos
Message 7 of 10
(2,793 Views)
Where does this path can be selected ?
The SVE is installed on my two computers.
the .aliases is like that :

[My computer]
My computer = "localhost"

(I have some difficulties to understand cause I'm not english ^^')

Thank you for answers
0 Kudos
Message 8 of 10
(2,784 Views)

Hi,

 

Do you have Labview run time engine installed on your PC?

 

 

 

 

-kdm

0 Kudos
Message 9 of 10
(2,765 Views)

Yes , I saw it in C/Programmes/National Instrument/Shared/Labview Run Time

0 Kudos
Message 10 of 10
(2,751 Views)