naturephoenix
Electrical
- May 13, 2018
- 6
Hello guys. I got AI card which takes samples every 50micro sec. My PLC cycle is 1ms which means I get every ms array of 20samples. I am measuring 3 voltages and 3 currents. Phase values. My goal is to have correct and quick as possible measurement. I am measuring frequency with PLL method and lets say speed from 0 to 50-60Hz is around 30ms. Filter for harmonic is included same as calculation of simetrical components in order to eliminate frequency deviation due to nesimetry.
Regarding voltage effective values I got some doubts and ideas as well:
1.Every ms Iam calculating maximum value, once I reach zero I got my Amplitude and after that I start calculating for next period. Effective value I calculate from Amplitude.
2.Since I am calculating frequency I can calculate Effective value every ms from the buffer of samples. Buffer size is related with frequency. In a case Iam measuring 50Hz, 10ms buffer(4000 samples) woukd be appropriate. This means I have to have predifined buffer for lowest possible frequency I want to measure. Lower frequency higher buffer.
3.Calculating maximum value every ms from the buffer of 20ms(8000samples) which should be enough for 25Hz frequencies and above. From Amplitude I can calculate Effective value
Regarding voltage effective values I got some doubts and ideas as well:
1.Every ms Iam calculating maximum value, once I reach zero I got my Amplitude and after that I start calculating for next period. Effective value I calculate from Amplitude.
2.Since I am calculating frequency I can calculate Effective value every ms from the buffer of samples. Buffer size is related with frequency. In a case Iam measuring 50Hz, 10ms buffer(4000 samples) woukd be appropriate. This means I have to have predifined buffer for lowest possible frequency I want to measure. Lower frequency higher buffer.
3.Calculating maximum value every ms from the buffer of 20ms(8000samples) which should be enough for 25Hz frequencies and above. From Amplitude I can calculate Effective value