LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CREATING RANDOM ELEMENTS

Solved!
Go to solution

THKS.I DONT HAVE ROUND NEAR TO ZERO FUNCTION MY PALETTE

0 Kudos
Message 21 of 35
(6,432 Views)
  • When posting code post the actual code not a screenshot.  You wouldn't take a screenshot of a text file and post it on a text language forum.  Upload the actual VI, or zip several files and upload the zip.  The exception to this rule is when uploading a VI Snippet.  This is an image with the VI embedded in it, so the source is still intact.

https://decibel.ni.com/content/docs/DOC-40451

0 Kudos
Message 22 of 35
(6,430 Views)

@balbal207 wrote:

THKS.I DONT HAVE ROUND NEAR TO ZERO FUNCTION MY PALETTE


Sorry, I must have been thinking of another language.  Round Toward -Infinity will work here as well.

 

P.S.  You don't have to yell.  Just read that document Hooovahh linked to.


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
0 Kudos
Message 23 of 35
(6,426 Views)
0 Kudos
Message 24 of 35
(6,419 Views)

1. You will want to multiply by 4 (remember, we have 4 possible options to choose from here).

2. Get rid of the Index Array.  It is just confusing things.

3. As was said, you will want the Length input for the String Subset to be 1


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 25 of 35
(6,410 Views)

IF I USE INDEX ARRAY,WITH SOME CONVERSION I CANT ABLE TO CONNECT

0 Kudos
Message 26 of 35
(6,397 Views)
0 Kudos
Message 27 of 35
(6,389 Views)

can you please help me,that i can able to generate characters,but i have to store them continuously,how can i do that

0 Kudos
Message 28 of 35
(6,378 Views)

finally i did can you please check it.thanks for your help..all

0 Kudos
Message 29 of 35
(6,371 Views)
Solution
Accepted by topic author balbal207

This is a clear case of "I have no clue what I am doing so I am just going to make random connections until it compiles."  Seriously, take a minute to think through the process.  As you have it, you will just get "abcd" followed by a whole bunch of b (50 of them to be exact).

 

1. GET RID OF THE INDEX ARRAY.

2. initialize the shift register with an empty string.  There is a nice Empty String Constant to make your life a little easier.

3. Wire the "abcd" constant to the String input of the String Subset.

4. Wire the output of the String Subset to your Concatinate String to combine the substring with the string you are saving in the shift register.


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 30 of 35
(6,359 Views)