This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
university:tools:m1k:alice:oscilloscope-x-y-user-guide [18 Jul 2020 20:12] – created Doug Mercer | university:tools:m1k:alice:oscilloscope-x-y-user-guide [29 Jul 2021 14:59] – [Applying Digital Filtering:] Doug Mercer | ||
---|---|---|---|
Line 7: | Line 7: | ||
=====Oscilloscope / Main Window: | =====Oscilloscope / Main Window: | ||
- | Be sure that the ALM1000 board is plugged into a USB port before starting the program. Once the program is running the main Oscilloscope window, as shown in figure 1, should appear. This is also serves as the main ALICE desktop window as well as the Oscilloscope VI Window. There are also controls for opening the other virtual instrument windows and certain common control functions. The wundow | + | Be sure that the ALM1000 board is plugged into a USB port before starting the program. Once the program is running the main Oscilloscope window, as shown in figure 1, should appear. This is also serves as the main ALICE desktop window as well as the Oscilloscope VI Window. There are also controls for opening the other virtual instrument windows and certain common control functions. The window |
{{ : | {{ : | ||
Line 13: | Line 13: | ||
<WRAP centeralign> | <WRAP centeralign> | ||
- | Many of the drop down menus on the main oscilloscope screen and the screens for the other instruments include accelerator keys, indicated by [] around the accelerator keyboard character next to the menu item. Typing one of these characters while the mouse cursor is inside the graphics drawing area will invoke that menu function. For example typing 1 or 2 will toggle on and off the CA-V and CB-V traces. | + | ====The Top Menu Section==== |
+ | |||
+ | The menu section along the top, shown in figure 1T, contains various buttons and drop-down menus that control Oscilloscope Triggering, Horizontal time base, Horizontal position, how and what signals are displayed, and run acquisition looping / stop acquisition looping / exit program. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | ===Triggering functions=== | ||
+ | |||
+ | The ADALM1000 signal generation and measurement hardware is tightly integrated and can operate in two modes. As an integrated Source/ | ||
+ | |||
+ | The Trigger button is a drop down menu listing which signal to trigger on, CA-V, CA-I, CB-V, CB-I or none. The use of Triggering to display a stable trace is generally necessary when viewing externally generated signals. When viewings internally generated signals from one or the other of the AWG channels a stable trace happens automatically when the AWG Sync function is enabled i.e. the beginning of the AWG output waveform is restarted at the same point at the start of each time sweep. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | The Auto Level option automatically sets the trigger level to the selected waveform midpoint on each sweep. The trigger point will thus track any changes in the input waveform. | ||
+ | |||
+ | The Low Pass Filter option applies a variable length digital low pass filter function to the selected waveform before searching for the trigger condition. This can be used to filter high frequency noise that might be on the signal of interest and better stabilize the triggering. The length of the filter, in samples, can be set/ | ||
+ | |||
+ | When Manual Triggering is selected one sweep is acquired and displayed each time the green Run button is clicked. | ||
+ | |||
+ | When Single Shot Triggering is selected triggering is " | ||
+ | |||
+ | The Edge button is a drop down menu listing either the rising or falling edge for triggering. The Trigger Level entry window contains the trigger level in volts for CA-V and CB-V or mA for CA-I and CB-I. | ||
+ | |||
+ | The 50% button sets the trigger level to the midpoint (50% point) of the selected trigger waveform. i.e. to the (maximum + minimum)/ | ||
+ | |||
+ | ===Horizontal Time Controls=== | ||
+ | |||
+ | < | ||
+ | |||
+ | There are two sweeping modes in the time domain display. The conventional time per Div based view and a rolling mode. The Roll Mode in a digital storage oscilloscope uses a display different from that of the usual time-based view. While viewing a very low-frequency periodic signal in the usual time per Div based view the screen up dates, is redrawn, with the next new trace only after a screen’s worth of data samples are captured. This can take a few seconds for 100 mS/Div or greater time bases. Rather, in Roll Mode the trace is redrawn continuously and moves from right to left along the time-axis as new samples are taken, resembling what you would see in an analog strip chart. The time axis, rather than starting at the triggering point as in conventional mode, remains static and the waveform moves or rolls. Accordingly, | ||
+ | |||
+ | The Hold Off entry window, in mS, is used to shift the horizontal position ( apparent time 0 start point ) within the acquired sample point buffers being displayed. The data used for the vertical and horizontal waveform calculations is also shifted by that amount. The sample buffer is generally two screens long so setting the hold off time to more than one screen width is not recommended. This is mainly used when synced to the AWG. Due to the discontinuous nature of the AWG outputs this allows the user to skip over any initial transients that might appear if the system being measured has " | ||
+ | |||
+ | The Horz Pos entry window is used to change the horizontal position of the time trace. Normally, with the Horz Pos set to 0 the left edge of the grid is "time 0". Setting Horz Pos to something else shifts the 0 time point on the grid by that amount ( in mSec ). So if you set Horz Poss to a negative number for example you can see time before the trigger. | ||
+ | |||
+ | The Time mS/Div spinbox entry window is used to set the horizontal time base in the standard 1, 2, 5 step increments. Other values maybe entered manually. | ||
+ | |||
+ | ===Trace Controls=== | ||
+ | |||
+ | The Curves drop down menu button allows the selection of which signal waveform traces will be displayed vs time. The All button selects all four curves to be displayed and the None button clears all four curves. Plot the Math-X and Math-Y formulas by clicking on those options. ALICE can automatically adjust the trace vertical position to center the CA-V and /or CB-V traces on the midpoint of the waveform each sweep by clicking on either or both of the options below the –Auto Vert Center- heading. This is analogous to a software " | ||
+ | |||
+ | When using external Resistor Divider attenuators the frequency response of the Channel may be reduced. The software High Pass frequency compensation can be selected for either channel by clicking on the buttons below the –Input HP Comp- heading. See the section on Analog Inputs below | ||
+ | |||
+ | It is also possible to select which of the possible stored reference time traces, if saved via the Snap-Shot option, will be displayed. | ||
+ | |||
+ | At the bottom are options to enable the vertical Time and horizontal Voltage (Current) cursors. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | The green PWR-On button toggles on and off the fixed analog +2.5 V and +5 V power supplies. The button turns red when the supplies are off. The power supplies do not turn completely off but go to around +2 V and can supply only about 20 mA when shorted to ground. This is much less than the 200 mA or so they could supply if accidentally shorted when on. It is good practice to turn off the supplies ( or better yet disconnect them ) when making any modifications to the circuit under test. | ||
+ | |||
+ | The green Run button starts continuous looping acquiring input samples. The red Stop button stops or pauses the acquisition looping. The Stop button also serves as a sort of refresh button. If the Stop button is clicked when stopped the graphics display is redrawn using any new settings that might have changed but using the existing data buffers. The Exit button exits (kills) the program. | ||
+ | |||
+ | Many of the drop down menus on the main oscilloscope screen and the screens for the other instruments include accelerator keys, indicated by () around the accelerator keyboard character next to the menu item. Typing one of these characters while the mouse cursor is inside the graphics drawing area will invoke that menu function. For example typing 1 or 2 will toggle on and off the CA-V and CB-V traces. | ||
+ | |||
+ | ===ALICE Scope/AWG only option=== | ||
+ | |||
+ | By setting to 1 the EnableScopeOnly = 1; option in the alice_init.ini file, the Oscilloscope and AWG controls can be combined in one window as shown in figure 1S. The controls all work as they do in the default two window configuration (See [[university: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | The other virtual instruments can still be accessed by clicking on the Open Instruments button in the Options drop down menu as shown in figure 1Vi. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
====The Right Side Menu Section==== | ====The Right Side Menu Section==== | ||
Line 192: | Line 266: | ||
It would be nice to not have to use a compensation capacitor, adjustable or otherwise. A digital (software) frequency compensation feature has been implemented in the ALICE 1.3 Desktop software package. | It would be nice to not have to use a compensation capacitor, adjustable or otherwise. A digital (software) frequency compensation feature has been implemented in the ALICE 1.3 Desktop software package. | ||
- | The software frequency compensation for each channel consists of a cascade of two adjustable | + | The software frequency compensation for each channel consists of a cascade of two adjustable |
In figure In2 we show the new controls for the input compensation. To turn on and off the compensation for Channels A and B check boxes are added under the Curves drop down menu. Turning on compensation applies to both the Scope and Spectrum tools (time and frequency measurements). The filter time constant and gain settings can be set using new entry slots in the Settings Controls screen. The DC gain and offset adjust controls are unchanged. | In figure In2 we show the new controls for the input compensation. To turn on and off the compensation for Channels A and B check boxes are added under the Curves drop down menu. Turning on compensation applies to both the Scope and Spectrum tools (time and frequency measurements). The filter time constant and gain settings can be set using new entry slots in the Settings Controls screen. The DC gain and offset adjust controls are unchanged. | ||
Line 239: | Line 313: | ||
[[university: | [[university: | ||
- | ====The | + | ====The |
- | + | ||
- | The menu section along the top contains various buttons and drop-down menus that control Oscilloscope Triggering, Horizontal time base, Horizontal position, how and what signals are displayed, and run acquisition looping / stop acquisition looping / exit program. | + | |
- | + | ||
- | ===Triggering functions=== | + | |
- | + | ||
- | The ADALM1000 signal generation and measurement hardware is tightly integrated and can operate in two modes. As an integrated Source/ | + | |
- | + | ||
- | The Trigger button is a drop down menu listing which signal to trigger on, CA-V, CA-I, CB-V, CB-I or none. The use of Triggering to display a stable trace is generally necessary when viewing externally generated signals. When viewings internally generated signals from one or the other of the AWG channels a stable trace happens automatically when the AWG Sync function is enabled i.e. the beginning of the AWG output waveform is restarted at the same point at the start of each time sweep. | + | |
- | + | ||
- | {{ : | + | |
- | + | ||
- | <WRAP centeralign> | + | |
- | + | ||
- | The Auto Level option automatically sets the trigger level to the selected waveform midpoint on each sweep. The trigger point will thus track any changes in the input waveform. | + | |
- | + | ||
- | The Low Pass Filter option applies a variable length digital low pass filter function to the selected waveform before searching for the trigger condition. This can be used to filter high frequency noise that might be on the signal of interest and better stabilize the triggering. The length of the filter, in samples, can be set/ | + | |
- | + | ||
- | When Manual Triggering is selected one sweep is acquired and displayed each time the green Run button is clicked. | + | |
- | When Single Shot Triggering is selected triggering is " | + | The menu section along the bottom contains |
+ | The V/Div and mA/Div spinboxs set the corresponding vertical ranges in the standard 1, 2, 5 step increments. Other values maybe entered manually. The position entry windows determine the vertical position of their scales with respect | ||
- | The Edge button is a drop down menu listing either | + | The default arrangement of the entry widgets and the buttons that serve as labels |
- | The 50% button sets the trigger level to the midpoint (50% point) of the selected trigger waveform. i.e. to the (maximum + minimum)/2. | + | {{ : |
+ | <WRAP centeralign> | ||
- | ===Horizontal Time Controls=== | + | {{ : |
- | + | ||
- | The Hold Off entry window, in mS, is used to shift the horizontal position ( apparent time 0 start point ) within the acquired sample point buffers being displayed. The data used for the vertical and horizontal waveform calculations is also shifted by that amount. The sample buffer is generally two screens long so setting the hold off time to more than one screen width is not recommended. This is mainly used when synced to the AWG. Due to the discontinuous nature of the AWG outputs this allows the user to skip over any initial transients that might appear if the system being measured has " | + | <WRAP centeralign> |
- | + | ||
- | The Horz Pos entry window is used to change the horizontal position of the time trace. Normally, with the Horz Pos set to 0 the left edge of the grid is "time 0". Setting Horz Pos to something else shifts the 0 time point on the grid by that amount ( in mSec ). So if you set Horz Poss to a negative number for example you can see time before the trigger. | + | |
- | + | ||
- | The Time mS/Div spinbox entry window is used to set the horizontal time base in the standard | + | |
- | + | ||
- | ===Trace Controls=== | + | |
- | + | ||
- | The Curves button allows the selection of which signal waveforms will be displayed when plotting vs time. The All button selects all four curves to be displayed and the None button clears all four curves. It is also possible to select which of the possible stored reference time traces, if saved via the Snap-Shot option, will be displayed. | + | |
- | + | ||
- | The green PWR-On button toggles on and off the fixed analog +2.5 V and +5 V power supplies. The button turns red when the supplies are off. The power supplies do not turn completely off but go to around +2 V and can supply only about 20 mA when shorted to ground. This is much less than the 200 mA or so they could supply if accidentally shorted when on. It is good practice to turn off the supplies ( or better yet disconnect them ) when making any modifications to the circuit under test. | + | |
- | + | ||
- | The green Run button starts continuous looping acquiring input samples. The red Stop button stops or pauses the acquisition looping. The Stop button also serves as a sort of refresh button. If the Stop button is clicked when stopped the graphics display is redrawn using any new settings that might have changed but using the existing data buffers. The Exit button exits (kills) the program. | + | |
- | + | ||
- | ====The Bottom Menu Section==== | + | |
- | + | ||
- | The menu section along the bottom contains the range ( V/Div, mA/Div ) and position controls | + | |
- | The V/Div and mA/Div spinboxs set the corresponding vertical ranges in the standard 1, 2, 5 step increments. Other values maybe entered manually. The position entry windows determine the vertical position of their scales with respect to the blue center line on the grid. That is to say the value entered corresponds to the number displayed next to the blue center line. | + | |
====The Graphics Display Area==== | ====The Graphics Display Area==== | ||
Line 407: | Line 448: | ||
There is also a check button to display the saved X-Y reference trace (see note above in Oscilloscope section on Snap-Shot option). | There is also a check button to display the saved X-Y reference trace (see note above in Oscilloscope section on Snap-Shot option). | ||
+ | |||
+ | {{ : | ||
=====Oscilloscope and X-Y Plot Examples: | =====Oscilloscope and X-Y Plot Examples: | ||
Line 499: | Line 542: | ||
The DC average of the output waveform should be at about 2 V ( 2 mA in the collector load resistor ) below the +5 V power supply or about +3 V. The voltage gain of the amplifier will be the Channel B P-P value divided by the Channel A P-P value. Which for this example is about 1.5. | The DC average of the output waveform should be at about 2 V ( 2 mA in the collector load resistor ) below the +5 V power supply or about +3 V. The voltage gain of the amplifier will be the Channel B P-P value divided by the Channel A P-P value. Which for this example is about 1.5. | ||
+ | |||
+ | =====Applying Digital Filtering: | ||
+ | |||
+ | With this interface, ALICE Desktop can apply digital filtering to the captured Channel A and B voltage waveform data before being displayed in the Time and/or Frequency domains. Digital filtering can also be applied to the contents of the generated AWG waveform buffers as well. ALICE uses the numpy convolve function to perform the filtering function. It is possible to have the program generate a simple Box Car (moving average) filter by setting the length and then clicking on the Box Car check box. | ||
+ | |||
+ | The supplied list of coefficients is convolved with the captured data buffer. The list of filer coefficients for either Channel A or B is first loaded from a single column .csv file by using the “Load CH A Filter Coef” and “Load CH B Filter Coef” buttons. The length ( number of coefficients ) and file name will then be displayed. The digital filter(s) will be applied to the voltage waveform data buffers if the “Filter CH A” and/or “Filter CH B” checkboxes are checked. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP centeralign> | ||
+ | |||
+ | The arithmetic sum of the coefficients should equal 1 for the “filter” to have an overall gain of one. A simple low pass filter for example has a rectangular (box-car) shape. The coefficients for a length of 2 would be [ 0.5, 0.5 ]. For a length of 4 the coefficients would be [ 0.25, 0.25, 0.25, 0.25 ] and so on. A few {{: | ||
+ | |||
+ | Alternatively, | ||
+ | |||
+ | The DFiltACoef and DFiltBCoef / AWGFiltACoef and AWGFiltBCoef array variable are used to store the filter coefficients. The Filter formula coefficient scaling feature can be used to scale a set of filter values read from a file. First read in the values from the file and then simply pass the array through the formula function by entering DFiltACoef or DFiltBCoef for the formula. | ||
+ | |||
+ | There are many filter design tools that can be found by searching the web. Here is one that works well but we are not necessarily endorsing it over any others that might be out there: | ||
+ | |||
+ | http:// | ||
+ | |||
+ | The array of coefficients ( filter taps ) that it generates as part of the C source code can be copy and pasted into a .csv file for use in ALICE. | ||
+ | |||
+ | The interface for the digital filters can be enabled or disabled by setting the following variable to either 1 or 0 in the alice_init.ini file, see [[university: | ||
+ | |||
+ | EnableDigitalFilter | ||
**For Further Reading:** | **For Further Reading:** |