LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to dynamically create psp variables?

I'd like to be able to dynamically create psp variables on the fly.  Without getting into details; using straight shared variables defined in a library is too constraining for my application.  I've found that I can create PSP variables dynamically using DataSocket VIs in the System directory (psp://localhost/system/), though I can't seem to do it with the LV Shared Variable VIs.  I was just curious if there was any way to programmatically create psp variables without using DataSocket VIs.

0 Kudos
Message 1 of 3
(2,930 Views)

In the client yes,

"

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."

On the server you create them. I believe, if my memory is correct, if you have DSC option there is code to dynamically create them on server side.

0 Kudos
Message 2 of 3
(2,926 Views)

Maybe I'm missing something.  From what you say, the following should work:

 

Capture.PNG

But it results in an error 1018 - "unspecified error occurred". 

0 Kudos
Message 3 of 3
(2,918 Views)