High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

setting reference levels for scalar measurement of waveform

Dear all,

it would be great if somebodey could give me some help with the following:

1. I am doing a "VOLTAGE AVERAGE" scalar measurement of a waveform. Is it correct, that I do not need to set the reference levels via the property node for this kind of measurement?

2. If I am doing the "VOLTAGE AVERAGE" scalar measurement for e.g. 100 subsequent waveforms (multiple records) using a for-loop structure to fetch each waveform one-by-one, should I use the "ni Scope Clear Waveform Measurement Stat.vi" after each scalar measurement (after each iteration of the for-loop)?


It would be very nice if somebody could give me some comments.


Kind regards,

beam
0 Kudos
Message 1 of 3
(6,022 Views)
1) The reference levels do not apply to the Voltage Average scalar measurement, so you don't need to set these. (They apply to rise time, fall time, width negative, width positive, duty cycle positive, and duty cycle negative measurements.)

2) Clearing the waveform measurement statistics will not affect the Voltage Average measurement itself. The driver can give you back not only the scalar measurements, but also statistics about those scalar measurements. When you call niScope Clear Waveform Measurement Stats.vi, it will reset the statistics, but will not affect the actual measurement that you are making. For example, say you fetched the Voltage Average scalar measurement four times, without clearing the statistics...

Voltage Average Mean (a statistic of the measurements)
+1 +1
-1 0
+1 .33333
-1 0


If you cleared the statistics after each measurement fetch, you would see this...

Voltage Average Mean (a statistic of the measurements)
+1 +1
-1 -1
+1 +1
-1 -1

since the statistics get reset every time.

To make a long story short, if you are only interested in the scalar measurement itself (Voltage Average, in this case), you don't need to call niScope Clear Waveform Measurement Stats.vi after each measurement.
0 Kudos
Message 2 of 3
(6,013 Views)
Oops... that example didn't format very nicely... this is what I meant


Voltage Average ......... Mean (a statistic of the measurements)
+1 ...................... +1
-1 ...................... 0
+1 ...................... .33333
-1 ...................... 0


If you cleared the statistics after each measurement fetch, you would see this...

Voltage Average ......... Mean (a statistic of the measurements)
+1 ...................... +1
-1 ...................... -1
+1 ...................... +1
-1 ...................... -1
0 Kudos
Message 3 of 3
(6,011 Views)