LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't SV's be programmatically deployed from an RT environment?

Is there a way to programatically deploy shared variables from a RT environment?  have highlighed what I need in the Runtime Menu.

 

 

 

Import Export Variables.PNGCreate Bound Variables.PNG

 

Storres211

0 Kudos
Message 1 of 4
(3,046 Views)
I don't think that your question is too clear?

Shared variables are statically defined in the shared variable engine - you can't programmatically create them - only read/write to them once they are created. These fixed variables (as part of lvlibs) either get deployed manually to the shared variable engine, or they get deployed as part of an executable/build specification.

With that information in mind, what is it that you are trying to do, and why?

LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 4
(3,013 Views)

Thanks fot the reply Sam,

 

Are you familiar with DSC for labview 7.1? that version gave you the option to configure Tags via the run time menu

this is where the user would import however many tags were needed for their application and change parameters (alarms, names, descriptions, deadbands etc). after LV8 was introduced the "configure tags" option is gone. the only way (I've seen so far) is to (1) create an I/O server (2) Create Bound Variables (3) update the settings via the Multiple Variable Engine.

http://forums.ni.com/ni/attachments/ni/170/410439/1/dsc%20menu%20items.PNG( Here's a picture of the old Menu option)

 

I understand that I can do all of the things the old Tag configuration Editor use to do within the Project Library, but I need to be able to create an exacutable that will act as my "test editor" , a VI that can configure shared variables while I'm using the Run Time Menu.

 

a separate VI will use the updated shared variables to Read the values.

 

storres211

 

 

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

I assume by RT you mean run-time and not real-time?

 

It's definitely possible to programmatically create, deploy and modify shared variables from the run-time environment, but you'll need the DSC run-time to do it. Have a look in the DSC Module >> Engine Control >> Libraries & Processes palette and the DSC Module >> Engine Control >> Variables & I/O Servers palette.

 

You can also use the Distibuted System Manager to manually perform these tasks, though I don't think there's a way to mass import/export variable settings. You can only modify one variable at a time.




Certified LabVIEW Architect
Unless otherwise stated, all code snippets and examples provided
by me are "as is", and are free to use and modify without attribution.
0 Kudos
Message 4 of 4
(2,959 Views)