From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-14-2010 11:23 PM
Hi there, i was wondering if there is a possibility of creating a point by point chirp signal instead of using an array based VI. This is so that I can pause the program and place a frequency indicator to display the frequency of the chirp, like a stop watch.
Cheers
Anthony
09-15-2010 07:14 AM
Anthony,
You probably can, but why not create an array and then just index out one point at a time?
Lynn
09-15-2010 07:03 PM
Hi Lynn, apparently what I have been told is that because it is an array based signal generation inside a while loop, the whole signal is not sent out to the waveform graph and speaker output until all the samples in the block have been reached. Therefore I cannot place a frequency counter as it will not work? I would also like to pause my chirp signal and continue which I have also found not possible because of the previous reason outlined. I was advised that I would need to create a point by point signal if I wanted to do this. But I cant seem to figure out how to do this. Any ideas?
Cheers
Anthony
09-16-2010 07:40 AM
Anthony,
I am not understanding exactly what you are trying to do ro where the problem is. Can you post what you have tried, along with some description of what does not work and what it should do?
Lynn
09-16-2010 08:43 AM
Something like this?
09-16-2010 07:50 PM
Hi lynn,
The idea behind this program is that I am using it as a new method of testing hearing. Conventionally hearing is tested by listening to octave frequencies and adjusting the intensity of the frequency until it is just heard. What I want to do is to sweep through the audible frequency range ( is 20 - 20,000 Hz but am aiming to test between 500- 12,500 Hz). Therefore using this program as a behavioural test for hearing, I would need to be able to keep track of what the frequency of the sweep is at any point along the duration of the sweep. Subejcts that have no hearing loss will hear the entire frequency sweep ( i.e from 500- 12,500 Hz) at a given intensity. Subjects that have a hearing loss ( for example between 3000-4000Hz) will end up missing that segment of the sweeping signal. At this point a boolean integrated within an event structure will be triggered by the subject which will save the frequency limits at where they stopped hearing the signal and when they resumed hearing it. Being able to pause the sweep at any time is also important if the subjects require help. I have not found a way in which to integrate this frequency counter but I have attached the sweep frequency generator.
Cheers
Anthony
09-16-2010 08:21 PM
Anthony,
That brings back memories. The first LabVIEW program I worked on (in LV version 1.2) tested the hearing of rats.
I would use something like the snippet David_L posted to generate the chirp. I would put together a state machine as part of a Producer/Consumer architecture. After various initialization and setup states the Sweep state would read an element from the Chirp array and send that frequency to the audio output. It would also increment the index. In a separate loop have the event structure for user inputs. When the subject triggers the boolean, send a Pause command to the state machine. In the Pause state you save the last frequency value and wait until ready to proceed.
Lynn
09-17-2010 08:34 PM
Hi David
Would you be able to post this code compatible with labview 2009 please.
Cheers
Anthony
09-17-2010 11:17 PM
Hi Lynn,
Thanks for your support, I have done some research on how state machines work and I think Ill try and implement that for my program.
Cheers
Anthony
09-20-2010 08:52 AM
I actually posted the code in 2010 and 8.0 on my community example. This should work fine in 2009 but let me know if there's any problems.