11-11-2015 09:09 AM
Thanks, but I don't know how to do this.
I have made a cluster with 2 elements like this:
My calling VI looks like this:
Now I don't know what to do in the receiving VI with the event structure:
I know I'm close with this, but somehow I just don't see the obvious solution 😞
11-11-2015 09:20 AM - edited 11-11-2015 09:21 AM
Just to illustrate:
I want this structure to be less cluttered, to work with clusters. Because there will be many user events in the final version. Also, why does it only say "user event" under the "Reg events" function and doesn't show my events by name?
11-12-2015 01:57 AM
Hi joptimus,
You can bundle the User Event Refnums into a cluster and pass this to your caller(s).
In the caller, select the required event.
To further clean things up, you could make a subvi out of the Create User Events (and bundle).
steve
11-12-2015 02:13 AM
Thanks. Can I have a cluster input for the "create user event" VI and use just one of those? I tried that and I cannot connect the resulting output to the "register user event(s)" function.
11-12-2015 07:58 AM
> Can I have a cluster input for the "create user event" VI [?]
Yes.
> I tried that and I cannot connect the resulting output to the "register user event(s)" function
Did you give the cluster a label?
User Events can certainly be clusters (or arrays, or combos), but you should not combine User Events.
In this case, you would have one event (Registered in the Receiver) that has two functions.
How would the "Receiver" know which one you wanted to change?
steve
11-17-2015 07:45 AM
Thanks, steve.
I have one final question please:
I now have moved the event creation into the calling VI. In the receiving/consumer VI, I'm reading the created and generated event into the register function and wire its output to my dynamic event registration:
The problem is, that in the event data node, I can only select those 4 items and not the value itself. I think this is a bug, because in another VI which built in the exact same way it works (although I'm not sure why it says "emergency", I never named any variable/function like that):
11-18-2015 04:05 AM
Do you ensure that the Globals are written to before they are read?
Dataflow must be incorporated that forces the definition of the Global to occur before you use it.
What is the default value of the Power on/off Global?
You might try running the program and then saving the Global (Right Click, "Make Current Value Default").
See if that fixes the "Emergency" label.
steve