07-10-2012 01:03 AM
Hi All,
I'm able to procure data from serial port and was able to plot the Sinewave, where the sampled input signal is a voltage signal at 50Hz.
Is it possible to count the waveforms in a sec and update the freq tab?
I tried using the available blocks, found few type cast errors resolved them, but not effectively.
Can any one help how to convert string data to dynamic data so that I can use the ready blocks for THD and frequency.
Thanks,
Raz
07-10-2012 02:34 AM
07-11-2012 04:42 AM
Hi Albert,
Sorry for the delay, included the extract single tone vi still freq is zero, I may be wrong in terminal connection,
I did try by varying expert mode still no freq. Is the tapping point right, pls check.
Regards,
Raz
07-11-2012 06:45 AM
Look at your data: You read up to 4 bytes from the serial port and convert them to an integer then to a flotaing point scalar. Then you convert that (the hard way) to an array containing only one element. The array is then converted to the Dynamic Data Type (but still contains only one data point) which is fed to the Tone Measurements VI.
So what do you expect the frequency of one data point to be?
You need to accumulate the data from multiple reads and look at that. Either pull the data from the chart history or accumulate it in a shift register.
Lynn
07-11-2012 11:45 PM
Thank you John, your data flow approach was helpful,
I'm new to labview, trying out ways to work on labview, I'm sampling 50Hz voltage signal at 8000 samples/sec(for 1cycle 160 samples)
and transmitting it through serialport at a baudrate of 115200. What methodology should I follow to extract data properly
so as to display a sine wave as well as anayse frequency from it.
All your inputs will be helpful.
-raz
07-12-2012 01:22 AM