08-23-2016 04:52 AM
Hi, I am a Labview newbie here.
While I am trying to convert the characters into infinite looping along the LED boards; say string 'NI',
my expected results would be NININININI......and stopped by a boolen stop button.
However, I have been trying hard to find ways in continuosly feeding in the elements of indexed 2-d boolean to repeat the loops by producer loops of queus and etc etc but to no avail.
Hope somebody would be kind enough to help. Thanks!
Solved! Go to Solution.
08-23-2016 05:16 AM - edited 08-23-2016 05:17 AM
A simple Increment and Quotient & Remainder will do the trick for you. I used Matrix Size in order to quickly get the number of rows being generated. Then in the loop, use a shift register to keep track of which index to get. After getting the index, add 1 (increment) and then get the remainder of the new index and the number of rows. This will reset the index to 0 after you reach the final index.
08-23-2016 05:35 AM - edited 08-23-2016 05:37 AM
Close enough! Crossrulz. But I couldnt get the 1-D array subset and the longer i run it, there is a column loss for each repetition and that could be due to the remainder function.
Does your Vi works fine work large repetitions?
08-23-2016 07:23 AM
Mine works just fine. The only real difference between my code and yours is that you are using Array Subset instead of Index Array. You should only be adding 1 row to the looping array, therefore you should be using Index Array.
08-23-2016 08:05 PM
Thanks and it works great! Appreciate your help!
06-10-2018 04:51 AM
how when i run program, and change value in string ,led indicator will change follow my new string value ?
06-10-2018 12:57 PM
No. Because the string is read only once at the beginning of the program. If you want to be able to change the string, you need a mechanism to reread it during the loop. You could put an event structure in the loop with an event for the value change of the string. It would read the new string and build a new array of booleans and reset the looping mechanism indices.