Jump to content

Rename User Event


Recommended Posts

Hello,

I've created a variable manager in a functional global which generates a user event for each changed rsp set variable.

The attached code is an example reduced to the minimum.

It works fine but my question is if any of you see a possibility to get different names for the user events.

Like you can see in the "MyVar1 and 2 Indicator.vi" both user events in the event structure have the same name and this is very inconvinient when the number variables/events increases.

regards,

nicolas

Link to comment

QUOTE (nicolasB @ Feb 5 2009, 02:14 PM)

Hello,

I've created a variable manager in a functional global which generates a user event for each changed rsp set variable.

The attached code is an example reduced to the minimum.

It works fine but my question is if any of you see a possibility to get different names for the user events.

Like you can see in the "MyVar1 and 2 Indicator.vi" both user events in the event structure have the same name and this is very inconvinient when the number variables/events increases.

regards,

nicolas

The User Event takes the name of whatever control or constant used to type it on creation AFAIK.

I personally would prefer a NAME input for the creation of user events, but that's currently not how it's implemented. The current situation basically prevents creating user events in a loop because they than all have the same name.

Shane.

Link to comment

QUOTE (Ton @ Feb 5 2009, 07:50 AM)

That is no problem, this is all done in compile time (the name of the event is part of the 'wire').

Ton

I was thinking more if your event datatype changed and you did not update the control/constant wired to the "Type" input you could get some really interesting run-time results!

Mark

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.