vultac Posted February 9, 2009 Report Share Posted February 9, 2009 Hi guys, Would like to ask if i use a for loop and keep on loop for eg multiples of 8... and i want to store the outputs and display out all of them later...in what ways could i do it? thanks! Quote Link to comment
GSR Posted February 9, 2009 Report Share Posted February 9, 2009 QUOTE (vultac @ Feb 8 2009, 07:01 PM) Hi guys, Would like to ask if i use a for loop and keep on loop for eg multiples of 8... and i want to store the outputs and display out all of them later...in what ways could i do it? thanks! You can use "enable indexing" in the for loop to store the output of each element into an array, then you can display the whole array later. Quote Link to comment
vultac Posted February 9, 2009 Author Report Share Posted February 9, 2009 would it be possible to show me how you do it with the loop as well? thanks!!! Quote Link to comment
jcarmody Posted February 9, 2009 Report Share Posted February 9, 2009 QUOTE (vultac @ Feb 8 2009, 03:06 PM) would it be possible to show me how you do it with the loop as well? thanks!!! http://lavag.org/old_files/monthly_02_2009/post-7534-1234124770.jpg' target="_blank"> Quote Link to comment
vultac Posted February 9, 2009 Author Report Share Posted February 9, 2009 hey thanks for the reply. how about if i want the current output to be the next iteration input? and i have to do it for like 200iterations? Quote Link to comment
jcarmody Posted February 9, 2009 Report Share Posted February 9, 2009 QUOTE (vultac @ Feb 8 2009, 03:38 PM) hey thanks for the reply. how about if i want the current output to be the next iteration input? and i have to do it for like 200iterations? Study Shift Registers and auto-indexing tunnels. The "1" constant outside the loop initializes the Shift Register, otherwise you'd end up with an array full of zeros. The "200" causes the loop to run that many times. You can use a loop to auto-index an input tunnel, too. There's a lot to these structures, but it's all pretty basic and fundamental to programming. http://lavag.org/old_files/monthly_02_2009/post-7534-1234126821.jpg' target="_blank"> Quote Link to comment
vultac Posted February 9, 2009 Author Report Share Posted February 9, 2009 alrite thx buddy would ask again if i encounter some prob! Quote Link to comment
vultac Posted February 11, 2009 Author Report Share Posted February 11, 2009 i was just wondering. if i use while loop and i want it to stop if for example my output reaches 1111 in binary form how can i wire the red dot so this could happen? thanks! i was just wondering. if i use while loop and i want it to stop if for example my output reaches 1111 in binary form how can i wire the red dot so this could happen? thanks! Quote Link to comment
jcarmody Posted February 11, 2009 Report Share Posted February 11, 2009 QUOTE (vultac @ Feb 10 2009, 01:40 PM) i was just wondering. if i use while loop and i want it to stop if for example my output reaches 1111 in binary form how can i wire the red dot so this could happen? thanks! http://lavag.org/old_files/monthly_02_2009/post-7534-1234309797.gif' target="_blank"> Didn't you post this on NI's forum? What are you doing? Quote Link to comment
jcarmody Posted February 12, 2009 Report Share Posted February 12, 2009 QUOTE (jcarmody @ Feb 10 2009, 06:51 PM) You said binary... My heart was in the right place! http://lavag.org/old_files/monthly_02_2009/post-7534-1234350714.gif' target="_blank"> Quote Link to comment
vultac Posted February 12, 2009 Author Report Share Posted February 12, 2009 thanks for the help! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.