10-27-2011 09:19 AM
Hi
I try to send a user event to another loop and come a around a curious feature(?).
If I create a user event with a data type "cluster (of bool in this case)" the receiving end unbundles the cluster.
I'd rather have the cluster as such to foward it internally at the receiving end.
Is there a simple way ?
Of course you may envelope the cluster in another cluster, but that seems not really clean to me ?
using LV 2010
Thanks for any ideas
Gabi
10-27-2011 09:40 AM
[Set WildSpeculationMode=True]
A user event can be one-to-many (one sender multiple recievers) unlike the queue which can be many to one.
So the data from an event must be copied to the reciever to ensure all updates are recieved by all recievers.
Ben
10-27-2011 09:54 AM
Look at this idea for an argument for NI to change this behavior.
You will need to bundle your cluster into another cluster before sending it to an event. When LV unclusters it, you'll still have a cluster.
10-27-2011 09:59 AM - edited 10-27-2011 10:02 AM
[GetSpeculationState=Wild]
Or possibly a bug. (Internally, a cluster of [4]bools T,F,F,T should be oddly flattened to 0x01000001)
Somehow the cluster gets lost in the dynamic event queue and NI forgot to put it back.
/\/\/\ Waves hand!
[edit: Well the hand waving worked] Thanks Matt
Known bug(Feature)
10-28-2011 01:40 AM
Thanks Matthew for the link to that ongoing discussion.
It is sometimes a bit tricky to select the proper keywords to get to right thread. 😉
Well, I found out about the packing into another cluster before, but as said (l.c.) it is messy and unclean.
But thanks anyway. I'll definitely vote for that option.
Gabi