Jump to content

Access global variables programatically


Recommended Posts

Is it possible to programatically access indicators and controls in global variables?

In customers a project I have a global variable that contains "fields" like

ChannelAUpdated

ChannelBUpdated

ChannelACorrected

ChannelBCorrected

Is there a way to build a string for the global I want to access and process that string with my argument?

Or do I need to build separate cases for the same operations.

BR

Anders

Link to comment
Is it possible to programatically access indicators and controls in global variables?

In customers a project I have a global variable that contains "fields" like

ChannelAUpdated

ChannelBUpdated

ChannelACorrected

ChannelBCorrected

Is there a way to build a string for the global I want to access and process that string with my argument?

Or do I need to build separate cases for the same operations.

BR

Anders

Using the VI Server/Application Control functions you can access control/indicators on any VI using their name as a reference. You do have to use the Variant data type to handle different data types.

Download File:post-3370-1154819808.zip

Link to comment
Using the VI Server/Application Control functions you can access control/indicators on any VI using their name as a reference. You do have to use the Variant data type to handle different data types.

Thanks, I have tried and inspected the VI you sent. I will test to implement this idea later in the week.

Anders

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.