bnsaflsujt
2008-07-29 04:40:04 UTC
Quick Rundown:
I am in charge of designing a program that will acquire several pieces of data, and write it to a log file. Currently, I am only having problem with the signal side of the VI.
I have a two fold question. First, I need to acquire sound and determine the amplitude of it real-time (2500 samples/second). I haven't found any way of doing this, and I even tried setting the duration of an Acquire Sound VI to .0004 which is equal to 1/2500 of a second. It just locks up the VI. I desperately need this to work, or something like it. If you look at my VI, you will see that I am attempting to acquire sound, perform an analysis on it, and output at the same time. The only problem is, I only get a couple of data points a second, because I cant go lower on the duration or the VI locks up.
The second question is somewhat related to the first. In the VI, I have a sawtooth generator, that I need to also be playing simultaneously, while collecting the data from the mic. When ever I execute the VI, the speakers just pop at me, but the pop never changes. I need the signal to last for 17.28 seconds, so I set the frequency to 1/17.28. When it generates the log file, it appears that the frequency is increasing, but as I said, I need this to be continuous, and I need to continuously know what the amplitude is as well.
I have one other problem, but I believe that I can easily fix it after I get the signals sorted out. I want the VI to create new files every time it goes through the VI, but for some reason, it continues to write to the same file continuously. I only want it to write readings to a log for 17.28 seconds, close it, zip it, and open a new file, but like I said, it isn't doing this.
SOMEONE PLEASE HELP MY APPARENTLY MISGUIDED PROGRAMMING!!!
Backup 2.zip:
http://forums.ni.com/attachments/ni/170/344648/1/Backup 2.zip
I am in charge of designing a program that will acquire several pieces of data, and write it to a log file. Currently, I am only having problem with the signal side of the VI.
I have a two fold question. First, I need to acquire sound and determine the amplitude of it real-time (2500 samples/second). I haven't found any way of doing this, and I even tried setting the duration of an Acquire Sound VI to .0004 which is equal to 1/2500 of a second. It just locks up the VI. I desperately need this to work, or something like it. If you look at my VI, you will see that I am attempting to acquire sound, perform an analysis on it, and output at the same time. The only problem is, I only get a couple of data points a second, because I cant go lower on the duration or the VI locks up.
The second question is somewhat related to the first. In the VI, I have a sawtooth generator, that I need to also be playing simultaneously, while collecting the data from the mic. When ever I execute the VI, the speakers just pop at me, but the pop never changes. I need the signal to last for 17.28 seconds, so I set the frequency to 1/17.28. When it generates the log file, it appears that the frequency is increasing, but as I said, I need this to be continuous, and I need to continuously know what the amplitude is as well.
I have one other problem, but I believe that I can easily fix it after I get the signals sorted out. I want the VI to create new files every time it goes through the VI, but for some reason, it continues to write to the same file continuously. I only want it to write readings to a log for 17.28 seconds, close it, zip it, and open a new file, but like I said, it isn't doing this.
SOMEONE PLEASE HELP MY APPARENTLY MISGUIDED PROGRAMMING!!!
Backup 2.zip:
http://forums.ni.com/attachments/ni/170/344648/1/Backup 2.zip