Jump to content

dynamic Global call


Recommended Posts

Hallo,

I need to write and read Global variable in test.vi knowing path of Global.vi and a variable name (level).

It's simple to call dynamicaly subVi because it has conectors - how to do it with Globals :question:

in attachment (LV8.5) simple example what and how I need to be done.

thank's for all replays.

_____

progor

Link to comment

Interesting....

I was able to write to the values of your 'Global.vi' using exactly the same steps you did to write to your subVI.vi.

'Ctrl Val.Get All' with 'Global.vi' didn't work (returned an empty array--not sure why) but 'Ctrl Val.Get' with the 'Control Name' specified (the more likely use case) worked fine. I'm using LabVIEW 8.6.

So I think you are just about there (if you still opt to use LabVIEW native globals).

Paul

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.