LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Tones to stop after a certain time

Hi,

Begineer here.

I'm using the tone block, and I can generate a tone signal, and my buzzer buzzes. However, it won't stop unless I stop the vi. I can't get the duration input to change anything. I might be missunderstanding its purpose, but I from what I understood, duration would be how long the tone would "play". Thanks, I have included a screenshot of my vi.

-Brian

Download All
0 Kudos
Message 1 of 2
(3,091 Views)

If you remove the while loop, does it play for the specified amount of time?

Also, the millisecond time VI does not necessarily start when you start your VI and therefore, you can't reliably compare that to a fixed value like you do there.

My last bit of advice is to consider using LINX instead of LIFA.  LIFA is no longer officially supported and LINX is its replacement and is in active development.

0 Kudos
Message 2 of 2
(2,643 Views)