LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want the tick count in the case structure to start when OK Button is True and not when the while loop starts.

Hello,

 

I can't find a way to solve this, I'd really appreciate the help.

 

The VI should display three periods of sin(2*pi*f*t) on a waveform chart and save the data in a spreadsheet only when the Save button is pressed.
The VI should start calculating the function only when the OK Button is pressed.

Is there a way for the tick count in the case structure to start when OK Button is True and not when the while loop starts?

 

I attached the VI for more clarification.

Screenshot 2024-03-22 145417.png

 

NB: I'm new to LABVIEW

 

Thank you,

Best regards,

Karl.

0 Kudos
Message 1 of 3
(386 Views)

Look into shift registers.

 

Shift registers allow values to be stored in a loop iteration so the next iteration can use it.

 

Have a look, see if it makes sense, let us know if you need more help with that.

 

0 Kudos
Message 2 of 3
(363 Views)

You mean like this?

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 3
(291 Views)