Group: http://groups.google.com/group/uh-elet-2300-fp1/topics
- Team 2 Code Update [4 Updates]
- Abridged summary of uh-elet-...@googlegroups.com - 6 Messages in 5 Topics [2 Updates]
Michelle Ngoc Luu <michel...@gmail.com> Apr 25 07:40PM -0700
Team 2 Progress: :D
Michelle Ngoc Luu <michel...@gmail.com> Apr 25 07:44PM -0700
<https://lh3.googleusercontent.com/-0klLvDvEWzw/T5i2nZoJmpI/AAAAAAAAAAY/LJ9Dh6kK_kk/s1600/team2+updates.jpg>
On Wednesday, April 25, 2012 9:40:10 PM UTC-5, Michelle Ngoc Luu wrote:
"henry.veltmanjr" <henry.v...@gmail.com> Apr 25 07:56PM -0700
Looks Great!... Nice work!
Michelle Ngoc Luu <michel...@gmail.com> Apr 26 11:01AM -0700
Team 2 Code with comments:
int CVICALLBACK plotFrequency (int panel, int control, int event, //plot
frequency and power function
void *callbackData, int eventData1, int eventData2)
{
double tempMinFrequency;
ssize_t maxFrequencyIndex,temp;
double maxPowerValue;
int FFTplotHandle;
ssize_t inputSize = mSize ;
double *Measurement_fft_output= (double *)malloc (inputSize *
sizeof(double)); //the declaration for the size of the holding array for
the data collected.
if (inputSize > 0 ) //if function for input size larger than 0.
{
}
switch (event) //switch case for the data obtained to display on the graph.
{
case EVENT_COMMIT:
Copy1D (Measurement_Window_Data, inputSize, Measurement_fft_output );
//function to copy the data collected from Measurement_Window_Data into
the array Measurement_fft_output
Spectrum (Measurement_fft_output, inputSize); //function to calculate
the Power of the data obtained
int half =(int)(inputSize/2)+1;
Subset1D (Measurement_fft_output, inputSize, 0, half,
Measurement_fft_output);
//function Subset1D to not duplicate the result data when plotting on
the graph
MaxMin1D (Measurement_fft_output, inputSize, &maxPowerValue,
&maxFrequencyIndex, &tempMinFrequency, &temp);
//function to find the max power of the data obtained on the graph.
SetCtrlVal (panelHandle, PANEL_MaxFrequencyBox, maxFrequencyIndex);
//function to display the Max Frequency value
SetCtrlVal (panelHandle, PANEL_MaxPower, maxPowerValue);
//function to display the Max Power value
RefreshGraph (panelHandle, PANEL_PowerSpectrum);
//function to refresh the graph to display new graph from the new chosen
data
//it removes any plots deleted using DeleteGraphPlot
FFTplotHandle = PlotWaveform (panelHandle, PANEL_PowerSpectrum,
Measurement_fft_output, half, VAL_DOUBLE, 1.0, 0.0, 0.0, 1.0,
VAL_THIN_LINE, VAL_EMPTY_SQUARE, VAL_SOLID, 1, VAL_RED);
//platform to display the graph
SetGraphCursorIndex(panelHandle,
PANEL_PowerSpectrum,1,FFTplotHandle,maxFrequencyIndex);
//function to display the cursor to visualize the max power value on
the graph
DeleteGraphPlot (panelHandle, PANEL_PowerSpectrum, FFTplotHandle,
VAL_DELAYED_DRAW);
//function to delete the old graph.
break;
}
return 0;
}
On Wednesday, April 25, 2012 9:40:10 PM UTC-5, Michelle Ngoc Luu wrote:
> Team 2 Progress: :D
On Wednesday, April 25, 2012 9:40:10 PM UTC-5, Michelle Ngoc Luu wrote:
Kaushal Desai <kdesa...@gmail.com> Apr 25 02:45PM -0500
All,
I will not be able to make it On Thursday MAY 3, 2012 for the presentation
to Dr. Malki, as I have prior engagement. I will continue to help Henry and
George on this project as I have been for the past week untill we finish.
Thanks,
Kaushal Desai.
"henry.veltmanjr" <henry.v...@gmail.com> Apr 25 03:23PM -0700
Kaushal,
I got you covered. Thanks for all of your help yesterday!
You received this message because you are subscribed to the Google Group uh-elet-2300-fp1.
--
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.
You received this message because you are subscribed to the Google Groups "UH-ELET-2300 Final Project: Data Acquisition System" group.
To post to this group, send email to uh-elet-...@googlegroups.com.
To unsubscribe from this group, send email to uh-elet-2300-f...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/uh-elet-2300-fp1?hl=en.