LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using bundle and unbundle to carry data

hi there.
i want to know how to use cluster can someone help me by showing me a basic diagram of how to do it.
i know that i have to initilize the value, but i dont know how to do that.
my currently program is using local variables and i dont want to do that. i want to carry my data using bundle and unbundle using wires.
i have two pictures to show you.
one is what i currently have.
another is what i think it should be. but i just dont know how to do it.
can you please help
thanks


p.s--i would attach my vi, but it is really big and i dont know if i can do that.


Message Edited by krispiekream on 07-16-2008 03:59 PM
Best regards,
Krispiekream
Download All
0 Kudos
Message 1 of 29
(4,065 Views)
Clusters are a good tool to add to the toolbox.  See below and feel free to ask questions!





Message Edited by jmcbee on 07-16-2008 03:02 PM
Message 2 of 29
(4,057 Views)
wow, that was fast.
so how do i get the cluster toolbox?
also, if i right click and create CONSTANT. the constant happened to be 37 degree C.
but don't have to to set it to 0?
what about boolean.
like a switch button. i right click and create constant with that.
what does it have to be...TRUE or FALSE?



Message Edited by krispiekream on 07-16-2008 04:19 PM
Best regards,
Krispiekream
0 Kudos
Message 3 of 29
(4,046 Views)
On the cluster palette, see the image below, you will see a cluster constant.  Simply drop this on the block diagram and then drop your controls inside.  You can initialize the cluster contents to whatever you like.




Message Edited by jmcbee on 07-16-2008 03:17 PM
Message 4 of 29
(4,043 Views)
i am using 7.0. i dont see that.

Best regards,
Krispiekream
0 Kudos
Message 5 of 29
(4,038 Views)
My apologies,  perhaps you have something like below?




It looks like you probably just have the cluster pallet without any variant functions.

Message Edited by jmcbee on 07-16-2008 03:26 PM
Message 6 of 29
(4,035 Views)
You must be seeing something like this.
 
Message 7 of 29
(4,032 Views)
yeah. thats what i see only
so how would i go about doing that?


Message Edited by krispiekream on 07-16-2008 04:55 PM
Best regards,
Krispiekream
0 Kudos
Message 8 of 29
(4,025 Views)
Thats all you need, just select the cluster constant and drop it on your block diagram, then fill it with strings, booleans, numerics or even references if you so choose.  Good luck.
Message 9 of 29
(4,022 Views)
ok.thanks
one more question.
if i am initializing with the cluster constants. do i have to initilize it again?



Message Edited by krispiekream on 07-16-2008 05:04 PM
Best regards,
Krispiekream
0 Kudos
Message 10 of 29
(4,019 Views)