LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SubPanel with different subVis

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.

milan87_1-1688448984927.png

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.

milan87_2-1688449308935.png

 

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

 

 

0 Kudos
Message 11 of 14
(389 Views)

Just checking, but are you aware of "Local Variables"? You can set your cluster with a Local Variable.

0 Kudos
Message 12 of 14
(381 Views)

For sure. Thanks

0 Kudos
Message 13 of 14
(378 Views)

@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.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 14 of 14
(362 Views)