LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to turn this pseudo code to labview

Thank you very much for your replies. However, I don't want T second delay after each element is being shown. I want once the elements are shown , then pattern repeatsT times. Sorry for the confusions

 

so 

if array is 2,3,4,6  and if T ( I should have said n) = 3

I want this: 

2,3,4,6. 2,3,4,6.2,3,4,6

 

i used a for loop based on array size but didnt work hence i assumed time delay might work ..which didn't

0 Kudos
Message 11 of 14
(892 Views)

So you want each element of an array displayed n times? How long of a delay do you want for each number to be shown?

 

Does this help at all?

Capture.PNG

0 Kudos
Message 12 of 14
(890 Views)

This is basically what I did. The problem is when I set repeat=3, it shows the array elements with index 1, 4,6 ( so step=3) indefinitely!! instead of showing all elements 3 times

0 Kudos
Message 13 of 14
(882 Views)

your shift registers hold wrong values, therefor you get the strange output

 

might this be a solution?

repeat-array.png


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 14 of 14
(858 Views)