07-04-2023 12:47 AM
Thanks for reply.
As i can see here in example is just passing user event between two loops, using dynamic user event.
Maybe i didn't explained very well.
Idea is that control cluster be updated.
1. I have one case in event loop ''control'', which take value change of control cluster (by user in UI).
2. SubVi( some test ) should be able to change value of control cluster. For this i can send user event to event loop, but in different case ''control from test'' then in 1. (control cluster)
If i use two events for one case, ''control'' (value change) and ''control from test'' (user event), then i don't have proper output in event loop.
Naturally, both event cases have the same data type (control cluster).
Output in event loop are only, Source, Type, Time, and there is no control cluster.
Is something like this even possible?
If not, how to update control cluster in event case ''control'' (value change), from event case ''control from test'' (user event)?
Thanks
07-04-2023 02:29 AM
Just checking, but are you aware of "Local Variables"? You can set your cluster with a Local Variable.
07-04-2023 02:39 AM
For sure. Thanks
07-04-2023 06:04 AM
@milan87 wrote:
Thanks for reply.
As i can see here in example is just passing user event between two loops, using dynamic user event.
Maybe i didn't explained very well.
Idea is that control cluster be updated.
1. I have one case in event loop ''control'', which take value change of control cluster (by user in UI).
2. SubVi( some test ) should be able to change value of control cluster. For this i can send user event to event loop, but in different case ''control from test'' then in 1. (control cluster)
3 If i use two events for one case, ''control'' (value change) and ''control from test'' (user event), then i don't have proper output in event loop.
1. Either work on the data here (whatever it is you plan to do with it), or send it in the same user event as the sub-vi so you only work on it in one place.
2. Either both 1 and 2 use the data in the user event, or you use a Value(signalling) property in the user event to "move" it to the other event.
3. If you combine them you probably get a Variant as data, right? You can use Variant to data to convert it to the cluster.