LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using bundle and unbundle to carry data

in another word. if i created CONSTANT for
ABORT for instant to be TRUE.
does it automatically pass true or i have to put TRUE wired to the bundle?
can you look at my images before and after and see if i am heading to the right direction?
thanks

Best regards,
Krispiekream
Download All
0 Kudos
Message 11 of 29
(1,439 Views)
The bundle by name function will only modify the elemets of the cluster that you specify.  If you don't select an item in the bundle by name, then the value will not be changed.
SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
Message 12 of 29
(1,420 Views)

The bundle by name function will only modify the elemets of the cluster that you specify.  If you don't select an item in the bundle by name, then the value will not be changed.
 
SteveA
so if i am getting this right, the input cluster or elements of the cluster is to specify what will be in the bundle.
it doesnt initize the value right?
so another word is. if i want any thing to be TRUE, 0 OR whatver. i still have to follow the normal procedure of initilizing the data?



Message Edited by krispiekream on 07-16-2008 07:36 PM
Best regards,
Krispiekream
0 Kudos
Message 13 of 29
(1,415 Views)
I think there may be some confusion of terminology here.  Consider the "Bundle by Name" function.  The cluster you wire into the "input cluster" terminal is your cluster.  The bundle by name function does not create your cluster.  It mearly modifies (replaces) elements of the cluster.  In the example below, the output cluster will show the exact same data. 


In the first case the Boolean item is set to true using the bundle by name function.  The second example, the boolean is simply set as true in the constant that defines the cluster.


Message Edited by StevenA on 07-16-2008 07:03 PM



Message Edited by StevenA on 07-16-2008 07:04 PM
SteveA
CLD

-------------------------------------
FPGA/RT/PDA/TP/DSC
-------------------------------------
Message 14 of 29
(1,412 Views)
great! thank you. its very clear to me now.
THANK YOU ONCE AGAIN!
Best regards,
Krispiekream
0 Kudos
Message 15 of 29
(1,373 Views)
ok..now i am running to a question that i dont know the answer too.
maybe someone who have used this often know the answer to it.
i have attached a picture of my wires...
by looking at i circled .
does it matter where the wire is at when i use UNBUNDLE BY NAME?
for instant...the circle at 5, the very button. i didnt run the  from circle 4 but from 2.
does that mean any VALUES WILL BE TAKEN FROM 2 instead of 4?
like the error out values for instant. would it used ERROR OUT values from 2 instead of 4?


Message Edited by krispiekream on 07-17-2008 05:50 PM

Message Edited by krispiekream on 07-17-2008 05:51 PM
Best regards,
Krispiekream
0 Kudos
Message 16 of 29
(1,356 Views)
It is very unclear as to which way the wires are flowing in your screenshot.  In circle 4, do you have a wire going into the middle node?  Do a right click on the ambiguous wires and do a Clean wire.  That will sort things out and help show were wires are going to and from.
 
Remember, the data is in the wire.  The rules of data flow apply to cluster wires just like they do for other more primitive wire types like doubles, strings, etc.   The pink wire contains the cluster data.  If you do an unbundle and bundle to change a value in the cluster, the cluster is updated with that value on the wire AFTER the point.  If you use a branch off the cluster wire before those operations, then you are using an older copy of the data that doesn't show those changes.
 
So if 5 is branched from 2, then it uses the values that were in 2, not the changes that occurred on the wire going from 2 to 4.
Message 17 of 29
(1,341 Views)
ok. that is very clear now.
thank you so much RAVENFAN, STEVENA, jmcbee and DENNIS


Message Edited by krispiekream on 07-17-2008 11:47 PM
Best regards,
Krispiekream
0 Kudos
Message 18 of 29
(1,329 Views)
sorry, i have one more question regarding this issue.
lets say that my data flow is up down. and it goes from LEFT TO RIGHT..
so how would i write the cluster output? up down and left right after?
and it goes on till the end of the screen or something?
wouldnt that look pretty messy in the block diagram?
is there any other way?
how about using shift register?
would that eliminate the way the wires are designed?



Message Edited by krispiekream on 07-18-2008 04:03 PM
Best regards,
Krispiekream
0 Kudos
Message 19 of 29
(1,307 Views)
Without any knowledge of your application I would say that a State Machine may be in order for you.  This will take all of your switchbacks and turn them into a loop of sorts.  If nothing else it will make your block diagram much easier to follow.
Message 20 of 29
(1,303 Views)