LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Back Values from Shift Register from Other Loop (FPGA)

Solved!
Go to solution

why.JPG

 

Referring to the picture above, both while loops are inside one while loop (not shown in picture). Problem is im trying to execute the numeric control once only and use the value from the second loop after that. I tried many ways and still have no idea how...could someone help? Thanks in advanced

0 Kudos
Message 1 of 6
(2,669 Views)
Solution
Accepted by augustg

augustg,

 

You might try using a case structure to route the numeric control into that shift register only on the first iteration of the outer while loop and in all other cases route the output of the case second loops shift register back into the first. Kind of hard to put into words, but something like this:

 

Capture.JPG

 

The case structure to the right that I added has one additional case "Default". In this case the value from the shift register of the outermost while loop is wired straight through. Hope this helps!

Nick C | Software Project Manager - LabVIEW Real-Time | National Instruments
0 Kudos
Message 2 of 6
(2,664 Views)

I removed the duplicate request from the Idea Exchange as it didn't belong there. Good luck!

0 Kudos
Message 3 of 6
(2,655 Views)

Thanks Dragis!

Nick C | Software Project Manager - LabVIEW Real-Time | National Instruments
0 Kudos
Message 4 of 6
(2,653 Views)

thanks dragis, couldn't find the button to delete it

0 Kudos
Message 5 of 6
(2,641 Views)

thanks for the idea^^

0 Kudos
Message 6 of 6
(2,640 Views)