LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically Creating Shared Variables

Hi,

 

i am just wondering why it seems not to be possible in LabView 2015 to create shared variables as written here (http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/ni_psp/): 

 

"Dynamically Creating Shared Variables

The SVE will automatically create the target variable with default properties when a client attempts to connect to a URL with the following format.

  • psp://computer/System/shared_variable, where shared_variable is the named tag for the data." 

I always get an error message saying the variable could not be found on SVE.

Is there now a different way to create shared variables dynamically?

 

Thank you in Advance!

basileus

0 Kudos
Message 1 of 4
(3,446 Views)

If I go to the url that you reference, I get "Page Not Found".  I guess that's as good an answer to your question ("It can't be done") as any ... (that remark is slightly tongue-in-cheek).  Actually, I didn't think you could dynamically create Shared Variables, but I'm willing to learn that I'm wrong ...

 

Bob Schor

0 Kudos
Message 2 of 4
(3,406 Views)

Hi Bob_Schor,

you are right, the url doesn't work. This one should:

https://www.ni.com/docs/en-US/bundle/labview/page/understanding-shared-variable-technology.html

 

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

Thanks.  It's been a while since I used Shared Variables, but that Help document seems to say what I remember -- that you create them in Project (just like you create any other kind of variable).  There are some things you can do with code, but creating Shared Variables does not seem to be among them.

 

Bob Schor

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