LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CREATING RANDOM ELEMENTS

Solved!
Go to solution

BUT CAN I KNOW WHAT AM I  DOING MISTAKE IN INDEX ARRAY

0 Kudos
Message 31 of 35
(3,643 Views)
Solution
Accepted by topic author balbal207

If you are going to insist on using the Index Array method, then you need to use it properly.

 

1. Get rid of the String Subset code.  You are using either the Index Array or the Array Subset.  Choose one.

2. If using the Index Array, then you need to populate that array constant to contain your values.

3. You do not need the second element with the Index Array.  Delete that 1 constant and shring your Index Array to only have 1 output.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 32 of 35
(3,634 Views)

Atlast i did it successfully,thanks for the people who helped me,especially they guy crossrulz.thanks everyone. function used:forloop,random generator,index array,concatenated string.

0 Kudos
Message 33 of 35
(3,620 Views)
Solution
Accepted by topic author balbal207

@balbal207 wrote:

Atlast i did it successfully,thanks for the people who helped me,especially they guy crossrulz.thanks everyone. function used:forloop,random generator,index array,concatenated string.


Not with the code you posted there.  This one looks unchanged from the previous attempt.

 

For those who might care, here is the solution that should be the most efficient (does not use "dynamic data types" with arrays).  It took me about a minute to write it.  It only took that long because my 7 month old distracted me.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 34 of 35
(3,612 Views)

thank you crossrulz,you are awesome...

Message 35 of 35
(3,600 Views)