LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How To: Register for multiple events

This should be something really simple, and I think I'm just overlooking something.  I'm just wondering, how do I get another event registration terminal on my event structure.

I can register for one, but not more, and I know I CAN (I hope) register for more, but I am lacking the knowledge for the how.

I guess a somewhat related question, is what is the best way to "name" events?  I read in a previous post that you have to create your own naming code (in the same vein as named queues and notifiers), but is there a generally accepted way to accomplish this?

Thanks for any help
0 Kudos
Message 1 of 7
(4,757 Views)
I have attached a simple vi showing multiple event registrations.  Just grab the bottom of the Register for Events and drag it larger, resizing it to the same number of user events you have created.  Then just wire each of the events to one of the terminals.
Message 2 of 7
(4,749 Views)
Sigh, how embarassing.  And to think I had had my coffee prior to asking that too!  Shame on me.

Thanks for the reply!  Now on to naming them...

Anyone have ideas?
0 Kudos
Message 3 of 7
(4,746 Views)
I assume you're talking about creating user events and then registering for them? And by "additional event registration terminals on your event structure" I'm assuming you want to add another "dynamic event terminal" to the event structure? The answer is you can't. You can have only one dynamic event terminal per event structure. To register more events to the event structure, just expand your Register for Events node like adding more bundle inputs.

As for naming user events, that's a good question. There's no input for a user event name like there is for queues and notifiers. The wires coming from the create user event will be different depending on the data type, but they both show up just as "<My User Event>: User Event" in the Event structure. I guess you have to tell which is which by the output terminal below "UsrEvntRef" in the event structure.

Hope that helped

Edit: wow...a flurry of responses between when I started and posted!

Message Edited by lanmat on 12-13-2006 09:32 AM

0 Kudos
Message 4 of 7
(4,743 Views)

"Will.D" <x@no.email> wrote in message news:1166022608740-453504@exchange.ni.com...
This should be something really simple, and I think I'm just overlooking something.&nbsp; I'm just wondering, how do I get another event registration terminal on my event structure. I can register for one, but not more, and I know I CAN (I hope) register for more, but I am lacking the knowledge for the how.I guess a somewhat related question, is what is the best way to "name" events?&nbsp; I read in a previous post that you have to create your own naming code (in the same vein as named queues and notifiers), but is there a generally accepted way to accomplish this?Thanks for any help



Hi,


You cannot get another terminal on your event structure. You can make another terminal on the registration node (same way as an index array can grow). This way, you can register for multiple events.


Regards,


Wiebe.
0 Kudos
Message 5 of 7
(4,731 Views)
"Thanks for the reply!  Now on to naming them...

Anyone have ideas?"
 
If you look at the example, i have named the data types (right click-visible-label)  going into the create user event, this is where you name the event.
Then, when you add an event case, the dialog will show the name of your user event.  Robot Happy
Message 6 of 7
(4,724 Views)
Ahhh, top notch!  Another one I should've caught.

Thanks again, and thanks to all who replied.
0 Kudos
Message 7 of 7
(4,721 Views)