LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hi, my c

ode right here, it is for a vi that creates a beeping sound, however, i am having difficulty because i do not think the duration is the proper duration in msec nor is the frequency control the correct pitch frequency...can someone plaease chek this for me?when i set the msec to 1000ms, i do not get a beep that lasts 1 second, so i am worried that this control is not accurate,
the pitch doesnt seem quite right either, if i set a frequency of 920hz, it doesnt sound like 920...
can someone please have a look at this and tell me what is wrong? thank you very much
0 Kudos
Message 1 of 3
(2,591 Views)
ode right here, it is for a vi that creates a beeping sound, however, i am having difficulty because i do not think the duration is the proper duration in msec nor is the frequency control the correct pitch frequency...can someone plaease chek this for me?I have not measured the output with a frequency counter, but having heard a 1KHz test tone many times in my career, I would say that setting the frequency to 1000 Hz produces an accurate output. The duration seems to be 1/10 of what is specified. If you multiply your duration control value by 10, it seems to produce the correct output duration. I am not sure if this varies from computer to computer depending upon CPU speed or other factors.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 3
(2,591 Views)
ode right here, it is for a vi that creates a beeping sound, however, i am having difficulty because i do not think the duration is the proper duration in msec nor is the frequency control the correct pitch frequency...can someone plaease chek this for me?I patched the above VI together in a few minutes using the "sim phone vi" as a template. It seems you need to consider the sampling rate for the duration (see attached). The result now seems to be quite accurate.
0 Kudos
Message 3 of 3
(2,591 Views)