LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

random

Untitled.png

I'm stuck on this problem. This a fundamental programing thing, so please try not to use advanced stuff!

0 Kudos
Message 1 of 6
(3,172 Views)

...so what have you got so far?

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 2 of 6
(3,161 Views)

Hi John,

 

atleast you were able to copy the image of your homework description into this forum…

 

I guess that homework wants you to work with integer random numbers: There are a lot of threads in this forum describing how to generate integer random numbers within a certain range. You may even find threads talking about different distributions of the randoms, so just look for them!

The rest is just some basic comparison you can easily implement.

 

The last two sentences talk about UI "look and feel", so you learn basic concepts of UI creation with LabVIEW…

 

And as billko said: show what you have done so far!

Nobody will do your homework for you - atleast you want to pay for work. (But then you should offer your task in a different thread.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 6
(3,128 Views)

another homeworkSmiley Very Happy

 

See comparison function try comparison function see what you get.

Changing the color of Boolean is simple; see the properties of Boolean indicator,you can change ON and OFF colors.

-
Amit
CLAD
0 Kudos
Message 4 of 6
(3,118 Views)

1. Use the Random Number function and then multiply by 20 and subtract 10 to get the proper range.

2. Use a case structure to do the comparison for you.

3. Take some tutorials.

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 5 of 6
(3,073 Views)

Actually, multiply by 21, round down, and subtract 10.

 

There are 21 integers between -10 and 10, inclusive.

Message 6 of 6
(3,055 Views)