03-11-2010 06:25 AM
Hi all,
I've got a cluster of controls on my main application VI that I am using to accept data of various types from the user.Next I want to pass this cluster to the input cluster control of another VI perfectly on the generation of a user event. That is, if I have 3 numbers, 2 strings and 2 time stamps in the cluster on the main VI, I want to pass on that exact same data to the control input cluster of the second VI in the same sequence, having the same values.
How do I do this?
Here is a snapshot showing the cluster controls on my main VI and the code for my second VI.
I want to pass the data into the input cluster 'data'. I tried calling the second VI into my main VI and directly hardwiring the cluster and then using an 'Unbundle by Name function' to separate the data, as shown. But this doesn't seem to work properly.
Regards.
Solved! Go to Solution.
03-11-2010 06:41 AM
03-11-2010 06:48 AM
The 2 clusters much be identical, then it should work smoothly. To ensure that they are, make a type-def of the cluster and use for both. From what i can see of your code it's clean and correct and it really shouldn't cause a hassle. What's (not) happening?
/Y
03-11-2010 07:18 AM
03-11-2010 07:45 AM
Thanks for your suggestion, Yamaeda. Using a type-def did the trick.
Cheers and thanks to all.
10-23-2024 04:25 AM - edited 10-23-2024 04:27 AM
this is an ancient post; I think you have already solved this issue. use the below method cluster or whatever you can pass data
10-23-2024 04:34 AM - edited 10-23-2024 04:35 AM
Hi Himasha,
can you explain your example?
10-23-2024 04:42 AM - edited 10-23-2024 04:46 AM
Hi Knight of NI,
Yes you can use Cluster
this is the only example I had
below is another one like that
this is should be very old thread but someone can learn by seeing this