LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CREATING RANDOM ELEMENTS

Solved!
Go to solution

still i didnt get solution.can anyone please post picture

0 Kudos
Message 11 of 35
(7,272 Views)

can you please post as a picture.

0 Kudos
Message 12 of 35
(7,270 Views)

the way u said i cant able to do.

0 Kudos
Message 13 of 35
(7,266 Views)

Why don't you supply code for us?  Let's see what you're having issues with.  Or at least supply us with some psuedo-code that shows you understand the logic of how to accomplish it, if you don't understand how to do it in LabVIEW,,,

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 14 of 35
(7,264 Views)

@balbal207 wrote:

can anyone please post picture


How about this one:

 

 

Seriously, if you are asking for help, you need to show us what you have tried.  We are here to help, not do your work.


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 15 of 35
(7,258 Views)
0 Kudos
Message 16 of 35
(7,213 Views)

You could have just taken a screen shot.  Or even better would be post your VI.

 

Ok, since you obviously have little to no idea what you are doing, let's start with creating a random number from 0 to 3.  To do this, you will need your random number generator (which you already have) multiply that by 4 and round down.  This works because the random gives you a number from 0 to 1 (not including 1).  So by multiplying by 4, we get a random number from 0 to 4 (again, not including 4).  Then just round down (toward 0 should work here) and you will have a number between 0 and 3.

 

Once you have that, see what you can do.

 

Oh, you might want to do some basic tutorials.  The autoindexing tunnels will be of use soon.

3 Hour Introduction
6 Hour Introduction
LabVEW Basics
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Learning NI
Getting Started with NI Products


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 17 of 35
(7,200 Views)

@balbal207 wrote:

please


Not bad for your first attempt.  Follow crossrulz advice to get the proper index in the range [0,1,2,3] and wire it to the OFFSET terminal, not the LENGTH.  You want the length to be 1 so you get one character.

 

Then you can auto-index the output tunnel to get an array of random characters and convert that to a string OR you can concatenate the string together inside the loop.  For that you will add a shift register to the loop and use the string function called concatenate.  Try it either way or better yet, do it both ways. Smiley Happy  Try it and post your attempt...

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 18 of 35
(7,182 Views)

THANKS for your kind reply,still i have some difficulty

0 Kudos
Message 19 of 35
(7,167 Views)

That looks almost nothing like what you were told to do.  Why would you put the random caluclation outside of the FOR loop?  Why are you multiplying by 49?  You are using the wrong round function (you are using Round To Nearest, it should be Round Toward 0).


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 20 of 35
(7,163 Views)