06-29-2020 12:56 PM
@crash_override wrote:
Is there a way to populate an array with 10 values divide by 10 and use that value and then clear the array for the next 10 samples?
You are way overthinking that. Why would you need to clear the array if you overwrite each element later anyway?
For a good introduction and alternatives, have a look at our old NI Week talk. I am discussion exactly this problem in part II on slides 12-14 and show alternatives and how they compare. So watch the video, download part II, look at the slides, and inspect the example. Good luck!
06-29-2020 02:47 PM
Is there a way to compute peak to peak voltage in labview built in? If not, how can I read the waveform and do it manually?
06-29-2020 02:55 PM - edited 06-29-2020 02:58 PM
This is something you need to measure, not compute. Please keep it all in one place. Thanks!
06-29-2020 03:06 PM
Thank you. Is the Amplitude level and Measurements function inaccurate? Seems to give me terribly inaccurate measurements and the Tone Measurements is even worse.
06-29-2020 07:20 PM
You have never shown us how the original signal looks like. Maybe your parameters are way off?
As a rule of thumb, the quality of the result of an analysis cannot be better than the quality of the data.
06-30-2020 10:48 AM
I hope this might help. This is what my extech meter reads and I trust that it's somewhat accurate however, my scope reads quite distant results in terms of the way the waveform looks and the peak to peak value I get using Amplitude and Levels Measurements express vi. Is there anything else I can provide that would help? I'm sending the amp a 100khz signal with an amplitude of 2v.
I'm sorry my phone camera just broke this is the best I can do for right now. My acquisition time is set to .02 which should be equal to 2ms just like the extech.I have set my sample rate to 200k which is double the frequency I'm inputting because otherwise it says I'm sending it 50 khz not 100. Trigger slope is rising just like the extech scope.
06-30-2020 10:52 AM
These images are useless. Please run your program until data shows on the "analog data" graph. Stop the VI. Right-click the graph...data operations...make current value default. Save VI under a new name and attach it here.
06-30-2020 10:53 AM
Twice the frequency is the bare minimum you should have set it to.
Make your acquisition rate more like 5 or 10 times the 100 kHz rate.
Twice the frequency means you only get 2 points for each cycle of your signal!
06-30-2020 11:00 AM
Ok! I changed the sample rate to 100k. Seemed to increase the ptp by a lot. Here is the vi with the saved graph data.
06-30-2020 11:23 AM - edited 06-30-2020 12:01 PM
So you have a 100kHz signal sampled at five points per period and it looks like there are higher harmonics. Are you sure the real peak is not between the sampled points? Your p-p is based on 200 peaks. Tell me again why you think you need to do a ptbypt average? This looks nothing like you see on the oscilloscope.
What are you trying to get out of it?