Jump to content

Create Shared Variable from VI


Recommended Posts

Hi all,

the document at http://zone.ni.com/devzone/cda/tut/p/id/4679 in the section titled Programmatic Access says:

"As discussed above, you can create, configure, and deploy shared variables interactively using the LabVIEW Project, and you can read from and write to shared variables using the shared variable node on the block diagram or through front panel data binding. New in 2009, LabVIEW also provides programmatic access to all of this functionality.

Use VI Server to create project libraries and shared variables programmatically in applications where you need to create large numbers of shared variables."

I'm mostly interested in the last part, that is, creating Libraries and shared variables from the VI programmaticly, but I was unable to find the right components to achieve that (I'll keep trying, though). Can someone guide through the process or point me to a VI that does that?

Thanks in advance, Miha

Link to comment

I'm mostly interested in the last part, that is, creating Libraries and shared variables from the VI programmaticly, but I was unable to find the right components to achieve that (I'll keep trying, though). Can someone guide through the process or point me to a VI that does that?

Go to the LabVIEW Example Finder and search for 'shared'. The "Create Online Process.vi" example seemed like the most basic to get started, and then there was a more advanced one.

Link to comment

Go to the LabVIEW Example Finder and search for 'shared'. The "Create Online Process.vi" example seemed like the most basic to get started, and then there was a more advanced one.

Thanks, I also did that. Am I correct in assuming this only works if you have DSC Module installed?

Miha

Link to comment

Thanks, I also did that. Am I correct in assuming this only works if you have DSC Module installed?

Miha

Yes, the DSC allows programmatic access to shared variables, creating SV etc...

LabVIEW 2009 has a Shared Variable API but it is no where near as powerful as the DSC nor can it do what you are asking.

Link to comment
  • 1 month later...

Yes, the DSC allows programmatic access to shared variables, creating SV etc...

LabVIEW 2009 has a Shared Variable API but it is no where near as powerful as the DSC nor can it do what you are asking.

You can see this post: XDSC

It seems a powerfull toolkit, but I don't have additional information

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.