LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Most basic problem

I'm just learning. Can't figure out why the simple exercize in the NI tutorial doesn't work. It is while loop enclosing a random number generator that is recorded on a waveform chart. The boolean toggle switch that is wired to the conditional terminal of the while loop has no effect when the VI is run. That is the chart just goes on continuously displaying the random numbers that are generated. Why is this simple exercize not working?
0 Kudos
Message 1 of 3
(2,506 Views)
I'm just a beginner too, but I'll take a stab-is the switch inside or
outside the loop?
Jimh wrote in message
news:5065000000080000008A300000-1004225886000@exchange.ni.com...
> I'm just learning. Can't figure out why the simple exercize in the NI
> tutorial doesn't work. It is while loop enclosing a random number
> generator that is recorded on a waveform chart. The boolean toggle
> switch that is wired to the conditional terminal of the while loop has
> no effect when the VI is run. That is the chart just goes on
> continuously displaying the random numbers that are generated. Why is
> this simple exercize not working?
>
0 Kudos
Message 2 of 3
(2,506 Views)
"Jimh" schrieb im Newsbeitrag
news:5065000000080000008A300000-1004225886000@exchange.ni.com...
> I'm just learning. Can't figure out why the simple exercize in the NI
> tutorial doesn't work. It is while loop enclosing a random number
> generator that is recorded on a waveform chart. The boolean toggle
> switch that is wired to the conditional terminal of the while loop has
> no effect when the VI is run. That is the chart just goes on
> continuously displaying the random numbers that are generated. Why is
> this simple exercize not working?

Hi Jimh,

the boolean has to work. Perhaps do you have forgotten to include a wait for
millicseconds function? If yes, your whole system will slow down and will
not react on the button press. Between w
hich button type you included? The
best for this is the red stop button...

greats
Henrik
0 Kudos
Message 3 of 3
(2,506 Views)