LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

random number generator generate one by one

ONLY when the boolean is true, i would like the random number generator to generate one number.

when i press the boolean again and its true,  would like the random number generator to generate another number

how do i come around doing so?

 

4.PNG

0 Kudos
Message 1 of 3
(2,285 Views)

Hello,

 

Please find attached VI

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
Message 2 of 3
(2,277 Views)

Sorry, but I have to critique the example code given.

 

There should be a way to stop the VI without using the abort button.  Add a stop button and add an event to handle it (supply the TRUE to the while loop's termination).

There is not need for the timeout in this case.


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