LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shift register only with unique data

I have a while loop with a shift register and some random #
generators. I don't want the table(2d array of strings) to contain two
random numbers in a row that are the same. For example
1,2,1,2,3,0,1 is fine but 1,2,2,0,2,1 is not because I have two 2's in
a row. Attached is what I have so far in LabVIEW 7.0 Thanks
0 Kudos
Message 1 of 4
(2,705 Views)
I made some small modifications to your VI and I believe I got it to
work.

Take a look at the attached VI. I used a shift register to keep track
of the last added string, and then I jsut check to see if the new
string is the same. If so don't add it.

Let me know if this is not what you where looking for.

Evan
National Instruments
0 Kudos
Message 2 of 4
(2,705 Views)
Thanks Evan, just what i wanted
0 Kudos
Message 3 of 4
(2,705 Views)
Glad I could help.
0 Kudos
Message 4 of 4
(2,705 Views)