LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cluster vs. shift register

hi there. i have another question to ask. about cluster wire vs shift register.
okay, right now. i have a stacked sequence. i want to get rid of it or make use of it by improving my code. i am going with clusters to bundle and unbundle it.
i created PRESSTARGET on stacked frame 1.
i wired it till the end of that frame into a shift register.
in FRAME 2.  i want to call out PRESSTARGET. so from the shift register. i unbundle the cluster and use PRESSTARGET value.
the value is 0.00 but it should be 730 because from frame 1. i made it equal to 730.
can someone tell me what happened/what did i do wrong? and how would i carry out 730 for my presstarget value?

Best regards,
Krispiekream
Download All
0 Kudos
Message 1 of 6
(2,876 Views)










Message Edited by krispiekream on 07-28-2008 12:01 PM
Best regards,
Krispiekream
Download All
0 Kudos
Message 2 of 6
(2,865 Views)
Watch your code in execution highlighting mode.
 
You should see that the SR is read once before any of the stacked sequence stuff executes so the new value you stuffed in the cluster is is in another wire and the SR value is not changed bt the stacked seq.
 
Now if you code using a State Machine, then you could put the value in the shift register in an early state and read it back in a latter.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 6
(2,855 Views)
i think you are right. i have a more clearer understanding of why things are like that now.
thanks Ben
Best regards,
Krispiekream
0 Kudos
Message 4 of 6
(2,813 Views)
can someone explain to me what happened it?
how come all my values is not saved?
how do i fix that?
what does the ARROW MEAN?




Message Edited by krispiekream on 07-31-2008 04:48 PM
Best regards,
Krispiekream
0 Kudos
Message 5 of 6
(2,771 Views)
The arrow is a feedback node. These are basically the same as a shift register. In recent versions of LV they can be used without a loop.

Without seeing the whole thing it is hard to tell exactly what is happening. Try removing the feedback node and just wire straight through.

Lynn
Message 6 of 6
(2,755 Views)