06-12-2020 12:20 PM
I have this voltmeter instrument and am wondering if I can do RMS properly like this or do I have to put a certain amount of them in an array over time and then do the calculation?
Outside of this case is just one continuous loop. I did not include the whole program because it is huge but I can if need be.
06-12-2020 12:35 PM
RMS of a scalar is pretty boring. We cannot tell what's in the dynamic data and why you are reducing it to a scalar.
(Code pictures are almost useless, especially if they contain express VIs and dynamic data. No way to tell what's inside!)
You might be interested in the ptbypt RMS function, but your code is too confusing to tell if that's appropriate.
06-12-2020 12:40 PM
I don't understand where the multiply by 10 is coming from. Otherwise, it looks like it should be fine. Though, I would just use the Basic Averaged DC-RMS.vi, which calculates the Mean and the Std Deviation on a waveform. I am just not a fan of pretty much every Express VI.
06-12-2020 12:56 PM
Thank you for replying! I have included a mock replica of my program without all the other stuff, just the main loop and the voltmeter part. I hope that helps you understand what I'm trying to do.
06-12-2020 12:57 PM
crossrulz, will that work with an AC signal?
06-12-2020 01:29 PM
@crash_override wrote:
crossrulz, will that work with an AC signal?
That's what I've used it for. If your signal has a "large" DC component, you really should calculate the Mean (which gives you the DC Offset), subtract that value from the waveform, and then calculate the RMS.
06-12-2020 04:40 PM
@crossrulz wrote:
@crash_override wrote:
crossrulz, will that work with an AC signal?
That's what I've used it for. If your signal has a "large" DC component, you really should calculate the Mean (which gives you the DC Offset), subtract that value from the waveform, and then calculate the RMS.
I believe you can just take the Population Standard Deviation and not worry about subtracting the mean. The Population Standard Deviation and AC RMS are equivalent.
mcduff