10-19-2005 01:40 PM
10-20-2005 04:31 PM
I've been looking into your posting and I have a few questions to help me understand better what is going on with your program:
1) Are you saying that the program is currently varying the start, stop, and delta X based on the frequencies being generated? And instead you want to be able to specify which frequency you start collecting at, which frequency stop collecting at, and the space between each frequency you write to file? Do I have that right?
2) The graph on the VI you sent has "time" on the X axis. Your post said it has "frequency." To which graph were you referring?
3) On your block diagram, the t(0) of your incoming waveform is connected to the "dt" of the Build Waveform.vi. Was that intentional?
Your answers will help me better find solutions to your questions. Additionally, I would recommend not using the "Write to LabVIEW Measurement" VI in your application, and instead use the actual Write to Spreadsheet.vi, or any other VI that writes data to a file. That way you will have the flexibility to create a header that makes sense and can decide what values you write. By using a more flexible write VI you should be able to decide which samples and at what delta X you write to file and display.
Regards,
Todd S.
10-20-2005 04:40 PM
10-25-2005 04:13 PM
Todd,
Thanks for your help. Here are answers to your questions:
1) Yes, the delta X is varying based on what input I am using and what sort of frequency range that input has. I want to be able to set this to a smaller portion of the frequency as I am looking at sound propagation at particular frequencies. I would also like to be able to control delta X, or at least have it always be sufficiently small (maybe 50Hz or less).
2) The first graph is of amplitude vs. time. The second graph is of amplitude vs. frequency (because it is after the FFT analysis).
3) I believe I correctly fixed the miswiring of dt in the build waveform. I don't know how I crisscrossed that.
I have also changed to the "write to spreadsheet.vi" as you recommended. I now am getting a row of data with 256 points in it. This data file is the correct frequency of the spectrum (it correlates with the 2nd graph). The ending frequency is at 10^8 Hz, which means delta x is ~4x10^5 Hz which is too large.
Thanks for your help. Hopefully this will answer some of your questions. I've attached the updated .vi and can post the excel file if you would like to see it.
-Jay
10-26-2005 02:10 PM
10-26-2005 02:17 PM
11-08-2005 12:56 PM
11-08-2005 01:04 PM
11-08-2005 02:45 PM
11-09-2005 02:58 PM