diff --git a/docs/tests/general/instrument_detaching.rst b/docs/tests/general/instrument_detaching.rst index 95031b580..bedfe966d 100644 --- a/docs/tests/general/instrument_detaching.rst +++ b/docs/tests/general/instrument_detaching.rst @@ -5,27 +5,34 @@ General Description: - The instrument detaching is the process of removing the instrument from the main window. This is usually done by double clicking the tool name from the tool menu (left side of scopy). The instrument detaching is useful when the user has multiple screens and wants to observe multiple instruments at the same time. The user can detach the instrument from the main window and move it to another screen or another part of the same screen. This feature is not available on Android. Any detached windows will be closed when the main window is closed. - When detaching a window, the title bar will include the name of the detached instrument. The user can reattach the instrument either by clicking the X button from the detached window title bar or by double clicking the tool name from the tool menu. The minimize and maximize buttons are also available on the detached window title bar and should work as expected. When reattaching the instrument, the reattached instrument will be the one currently selected. The user can detach multiple instruments at the same time. The detached instruments will be displayed in the order they were detached. Every detached instrument will work exactly as if they were still attached to the main window. The user can detach any instrument that is not the last instrument in the main window. When restarting Scopy, all detached instruments will be detached, just like in the previous session. -Setup: - - Pluto.* +Setup enviroment: +---------------------------------------------------------------------------------------------------------------------------- + +.. _pluto-usb-instrument-detaching: + +**Pluto.Usb:** + - Open the Scopy application + - Connect the PlutoSDR to the computer via USB + - Type the URI of the PlutoSDR in the URI field (if you don't know the URI, just type "ip:192.168.2.1") Test 1: Detach and reattach an instrument ---------------------------------------------------------------------------------------------------- -UID: - - TST.GEN.INST.DETACH_REATTACH +**UID:** TST.GEN.INST.DETACH_REATTACH -Description: - - This test checks if the user can detach and reattach an instrument from the main window. The user can detach the instrument by double clicking the tool name from the tool menu (left side of scopy). The user can reattach the instrument either by clicking the X button from the detached window title bar or by double clicking the tool name from the tool menu. The minimize and maximize buttons are also available on the detached window title bar and should work as expected. When reattaching the instrument, the reattached instrument will be the one currently selected. +**Description:** This test checks if the user can detach and reattach an instrument from the main window. The user can detach the instrument by double clicking the tool name from the tool menu (left side of scopy). The user can reattach the instrument either by clicking the X button from the detached window title bar or by double clicking the tool name from the tool menu. The minimize and maximize buttons are also available on the detached window title bar and should work as expected. When reattaching the instrument, the reattached instrument will be the one currently selected. -OS: - - Windows, Linux, Macos +**Preconditions:** + - Scopy is installed on the system. + - Windows, Linux-x86_64, Linux-arm64, Linux-arm32, macOS. + - Use :ref: `pluto-usb-instrument-detaching ` setup. -Steps: - * Step 1: Click on the connected Pluto device and connect to it. Select the 'ADC - Time' plugin. - * Step 2: Double click the 'ADC - Time' tool name from the tool menu. - * Expected Result: The 'ADC - Time' instrument should be detached from the main window. The title bar of the detached window should include the name of the detached instrument. - * Step 3: Click the square button from the tool menu to start the ADC data aquisition. - * Expected Result: The ADC should start acquiring data. The data should be displayed in the detached window. - * Step 4: Click the X button from the detached window title bar. - * Expected Result: The 'ADC - Time' instrument should be reattached to the main window. The 'ADC - Time' instrument should be the one currently selected. +**Steps:** + 1. Click on the connected Pluto device and connect to it. Select the 'ADC - Time' plugin. + 2. Double click the 'ADC - Time' tool name from the tool menu. + - **Expected Result:** The 'ADC - Time' instrument should be detached from the main window. The title bar of the detached window should include the name of the detached instrument. + 3. Click the square button from the tool menu to start the ADC data aquisition. + - **Expected Result:** The ADC should start acquiring data. The data should be displayed in the detached window. + 4. Click the X button from the detached window title bar. + - **Expected Result:** The 'ADC - Time' instrument should be reattached to the main window. The 'ADC - Time' instrument should be the one currently selected. diff --git a/docs/tests/plugins/debugger/debugger_preferences.rst b/docs/tests/plugins/debugger/debugger_preferences.rst deleted file mode 100644 index 9b619b5dc..000000000 --- a/docs/tests/plugins/debugger/debugger_preferences.rst +++ /dev/null @@ -1,58 +0,0 @@ -Debugger Preferences - Test Suite -==================================================================================================== - -General Description: Debugger preferences are settings that control the behavior of the debugger instrument. You can access the debugger preferences by going to the Preferences page (lower left corner, above the Analog Devices logo and the About button). From there, select the Debugger Plugin from the right-hand side menu. The debugger instrument preferences are: - -Setup: - - Pluto.* - -Test 1: Control debugger version ----------------------------------------------------------------------------------------------------- - -UID: - - TST.DBG.PREF.CHANGE_VERSION - -Description: - - This option allows you to use the new debugger plugin. The new plugin is more stable and has more features than the old plugin. The old plugin is still available for use, but it is recommended to use the new plugin. When this option is checked, the new plugin is used. When it is unchecked, the old plugin is used. After changing this option, a restart of Scopy is required for the change to take effect. - - -OS: - - any - -Steps: - * Step 1: Click on the connected Pluto device and connect to it. Select the Debugger plugin. By default, the IIO Explorer (Debugger v2) should be displayed. - * Expected Result: The IIO Explorer (Debugger v2) should be displayed. If you notice the navigation bar with devices and attributes on the left side, the IIO Explorer is displayed. - * Step 2: Go to the Preferences page (lower left corner, above the Analog Devices logo and the About button). From there, select the Debugger Plugin from the right-hand side menu. Uncheck the "Use debugger V2 plugin" option. - * Expected Result: A 'Restart' button should appear at the bottom of the preferences page. Click on the 'Restart' button. Scopy should restart. - * Step 3: Click on the connected Pluto device and connect to it. Select the Debugger plugin. - * Expected Result: The Debugger v1 plugin should be displayed. If you notice 2 sections, 'DEVICE SELECTION' and 'REGISTER MAP SETTINGS', the Debugger v1 plugin is displayed. - * Step 4: Repeat step 2, but this time check the "Use debugger V2 plugin" option. - * Expected Result: A 'Restart' button should appear at the bottom of the preferences page. Click on the 'Restart' button. Scopy should restart. - * Step 5: Click on the connected Pluto device and connect to it. Select the Debugger plugin. - * Expected Result: The IIO Explorer (Debugger v2) should be displayed. If you notice the navigation bar with devices and attributes on the left side, the IIO Explorer is displayed. - -Test 2: Include debug attributes in IIO Explorer ----------------------------------------------------------------------------------------------------- - -UID: - - TST.DBG.PREF.INCLUDE_DEBUG_ATTRIBUTES - -Description: - - This option allows you to include IIO debug attributes in the IIO Explorer. When this option is checked, debug attributes are included in the IIO Explorer. When it is unchecked, debug attributes are not included in the IIO Explorer. After changing this option, a restart of Scopy is required for the change to take effect. - -Test prerequisites: - - TST.DBG.EXPLR.NAV - -OS: - - any - -Steps: - * Step 1: Click on the connected Pluto device and connect to it. Select the Debugger plugin. By default, the IIO Explorer (Debugger v2) should be displayed. - * Step 2: Go to the Preferences page (lower left corner, above the Analog Devices logo and the About button). From there, select the Debugger Plugin from the right-hand side menu. Check the "Include debug attributes in IIO Explorer" option. (if it is checked, leave it as it is) - * Step 3: Go back to the Debugger plugin and notice the navigation bar on the left side. Double click on ad9361-phy and scroll down a bit. - * Expected Result: Among the final device attributes of the ad9361-phy device, you should see the debug attributes. They should start with the 'adi,' prefix. - * Step 4: Go back to the Preferences page and uncheck the "Include debug attributes in IIO Explorer" option. - * Step 5: Restart Scopy. - * Step 6: Click on the connected Pluto device and connect to it. Select the Debugger plugin. - * Step 7: Look at the navigation bar on the left side. Double click on ad9361-phy and scroll down a bit. - * Expected Result: The debug attributes should not be displayed among the final device attributes of the ad9361-phy device. (i.e., no attributes should start with the 'adi,' prefix) diff --git a/docs/tests/plugins/debugger/debugger_preferences_tests.rst b/docs/tests/plugins/debugger/debugger_preferences_tests.rst new file mode 100644 index 000000000..4453061a7 --- /dev/null +++ b/docs/tests/plugins/debugger/debugger_preferences_tests.rst @@ -0,0 +1,63 @@ +Debugger Preferences - Test Suite +==================================================================================================== + +General Description: Debugger preferences are settings that control the behavior of the debugger instrument. You can access the debugger preferences by going to the Preferences page (lower left corner, above the Analog Devices logo and the About button). From there, select the Debugger Plugin from the right-hand side menu. The debugger instrument preferences are: + +Setup enviroment: +---------------------------------------------------------------------------------------------------------------------------- + +.. _pluto-usb: + +**Pluto.Usb:** + - Open the Scopy application + - Connect the PlutoSDR to the computer via USB + - Type the URI of the PlutoSDR in the URI field (if you don't know the URI, just type "ip:192.168.2.1") + +Test 1: Control debugger version +---------------------------------------------------------------------------------------------------- + +**UID**: TST.DBG.PREF.CHANGE_VERSION + +**Description**: This option allows you to use the new debugger plugin. The new plugin is more stable and has more features than the old plugin. The old plugin is still available for use, but it is recommended to use the new plugin. When this option is checked, the new plugin is used. When it is unchecked, the old plugin is used. After changing this option, a restart of Scopy is required for the change to take effect. + +**Preconditions**: + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Step**: + 1. Click on the connected Pluto device and connect to it. Select the Debugger plugin. By default, the IIO Explorer (Debugger v2) should be displayed. + - **Expected Result:** The IIO Explorer (Debugger v2) should be displayed. If you notice the navigation bar with devices and attributes on the left side, the IIO Explorer is displayed. + 2. Go to the Preferences page (lower left corner, above the Analog Devices logo and the About button). From there, select the Debugger Plugin from the right-hand side menu. Uncheck the "Use debugger V2 plugin" option. + - **Expected Result:** A 'Restart' button should appear at the bottom of the preferences page. Click on the 'Restart' button. Scopy should restart. + 3. Click on the connected Pluto device and connect to it. Select the Debugger plugin. + - **Expected Result:** The Debugger v1 plugin should be displayed. If you notice 2 sections, 'DEVICE SELECTION' and 'REGISTER MAP SETTINGS', the Debugger v1 plugin is displayed. + 4. Repeat step 2, but this time check the "Use debugger V2 plugin" option. + - **Expected Result:** A 'Restart' button should appear at the bottom of the preferences page. Click on the 'Restart' button. Scopy should restart. + 5. Click on the connected Pluto device and connect to it. Select the Debugger plugin. + - **Expected Result:** The IIO Explorer (Debugger v2) should be displayed. If you notice the navigation bar with devices and attributes on the left side, the IIO Explorer is displayed. + +Test 2: Include debug attributes in IIO Explorer +---------------------------------------------------------------------------------------------------- + +**UID**: + - TST.DBG.PREF.INCLUDE_DEBUG_ATTRIBUTES + +**Description**: This option allows you to include IIO debug attributes in the IIO Explorer. When this option is checked, debug attributes are included in the IIO Explorer. When it is unchecked, debug attributes are not included in the IIO Explorer. After changing this option, a restart of Scopy is required for the change to take effect. + +Test prerequisites: + - :ref: `TST.DBG.EXPLR.NAV ` + +**Preconditions**: + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Step**: + 1. Click on the connected Pluto device and connect to it. Select the Debugger plugin. By default, the IIO Explorer (Debugger v2) should be displayed. + 2. Go to the Preferences page (lower left corner, above the Analog Devices logo and the About button). From there, select the Debugger Plugin from the right-hand side menu. Check the "Include debug attributes in IIO Explorer" option. (if it is checked, leave it as it is) + 3. Go back to the Debugger plugin and notice the navigation bar on the left side. Double click on ad9361-phy and scroll down a bit. + - **Expected Result:** Among the final device attributes of the ad9361-phy device, you should see the debug attributes. They should start with the 'adi,' prefix. + 4. Go back to the Preferences page and uncheck the "Include debug attributes in IIO Explorer" option. + 5. Restart Scopy. + 6. Click on the connected Pluto device and connect to it. Select the Debugger plugin. + 7. Look at the navigation bar on the left side. Double click on ad9361-phy and scroll down a bit. + - **Expected Result:** The debug attributes should not be displayed among the final device attributes of the ad9361-phy device. (i.e., no attributes should start with the 'adi,' prefix) diff --git a/docs/tests/plugins/debugger/debugger_tests.rst b/docs/tests/plugins/debugger/debugger_tests.rst index e50dbae1b..32b62c972 100644 --- a/docs/tests/plugins/debugger/debugger_tests.rst +++ b/docs/tests/plugins/debugger/debugger_tests.rst @@ -1,282 +1,291 @@ Debugger - Test Suite -======================================================================== +============================================================================================================================ User Guide: https://analogdevicesinc.github.io/scopy/plugins/debugger/index.html -Setup: - - Pluto.* +Setup enviroment: +---------------------------------------------------------------------------------------------------------------------------- + +.. _pluto-usb-debugger: + +**Pluto.Usb:** + - Open the Scopy application + - Connect the PlutoSDR to the computer via USB + - Type the URI of the PlutoSDR in the URI field (if you don't know the URI, just type "ip:192.168.2.1") + +.. _tst-dbg-explr-load: Test 1: Loading the debugger ---------------------------------------------------------------------------------------------------------------------------- -UID: - - TST.DBG.EXPLR.LOAD +**UID**: TST.DBG.EXPLR.LOAD -Description: - - This test checks if the debugger plugin is loaded when any device is connected to Scopy. +**Description**: This test checks if the debugger plugin is loaded when any device is connected to Scopy. -Test prerequisites: - - TST.HP.AUTO_SCAN_OFF +**Test prerequisites**: + - :ref: `TST.HP.AUTO_SCAN_OFF ` -Preconditions: +**Preconditions**: - Disable the Scopy scan feature - - Connect the PlutoSDR to the computer - - Type the URI of the PlutoSDR in the URI field (if you don't know the URI, just type "ip:192.168.2.1") + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Steps**: + 1. After adding the URI, click the "Verify" button + 2. Select the debugger plugin from the list of compatible plugins (the debugger works with any IIO compatible device) + - **Expected Result:** The plugin list should contain the Debugger plugin + 3. Connect to the device and see that the Debugger plugin appears on the left side of the screen (the tool menu) + - **Expected Result:** The tool menu panel (left side of the screen) should contain the Debugger plugin + 4. Disconnect the device and see that the Debugger plugin disappears from the tool menu + - **Expected Result:** The tool menu panel (left side of the screen) should not contain the Debugger plugin + 5. Connect the device again and see that the Debugger plugin reappears in the tool menu + - **Expected Result:** The tool menu panel (left side of the screen) should contain the Debugger plugin + 6. Disconnect the device and see that the Debugger plugin disappears from the tool menu + - **Expected Result:** The tool menu panel (left side of the screen) should not contain the Debugger plugin -OS: - - any - -Steps: - * Step 1: After adding the URI, click the "Verify" button - * Step 2: Select the debugger plugin from the list of compatible plugins (the debugger works with any IIO compatible device) - * Expected Result: The plugin list should contain the Debugger plugin - * Step 3: Connect to the device and see that the Debugger plugin appears on the left side of the screen (the tool menu) - * Expected Result: The tool menu panel (left side of the screen) should contain the Debugger plugin - * Step 4: Disconnect the device and see that the Debugger plugin disappears from the tool menu - * Expected Result: The tool menu panel (left side of the screen) should not contain the Debugger plugin - * Step 5: Connect the device again and see that the Debugger plugin reappears in the tool menu - * Expected Result: The tool menu panel (left side of the screen) should contain the Debugger plugin - * Step 6: Disconnect the device and see that the Debugger plugin disappears from the tool menu - * Expected Result: The tool menu panel (left side of the screen) should not contain the Debugger plugin + +.. _tst-dbg-explr-nav: Test 2: The navigation tree from the debugger displays the correct information ---------------------------------------------------------------------------------------------------------------------------- -UID: - - TST.DBG.EXPLR.NAV - -Description: - - This test checks if the navigation tree from the debugger displays the correct information. - -Test prerequisites: - - TST.DBG.EXPLR.LOAD - -OS: - - any - -Steps: - * Step 1: Connect a device to Scopy - * Step 2: Connect to the device and see that the Debugger plugin appears on the left side of the screen (the tool menu) - * Step 3: Click on the Debugger plugin - * Expected Result: On the left side of the Debugger tool there is an element under the filter bar that displays the devices from the connected IIO Context - * Step 4: Click on any element from the navigation tree - * Expected Result: The information about that element is displayed on the right side of the screen (Details View) - * Step 5: Click on another element from the navigation tree - * Expected Result: The information about the new element is displayed on the right side of the screen - * Step 6: Double click on an device name, for example the ad9361-phy (should have an arrow on the left of the name). - * Expected Result: The ad9361-phy has a small arrow in the left of it and the list with the channels should be displayed below the device name - * Step 7: Click on a channel from the list - * Expected Result: The information about the channel is displayed on the right side of the screen - * Step 8: Click on another channel from the list - * Expected Result: The information about the new channel is displayed on the right side of the screen - * Step 9: Double click on a channel name, for example voltage0 (should have an arrow on the left of the name). - * Expected Result: The list with the attributes should be displayed below the channel name - * Step 10: Click on an attribute from the list - * Expected Result: The information about the attribute is displayed on the right side of the screen - * Step 11: Click on another attribute from the list - * Expected Result: The information about the new attribute is displayed on the right side of the screen - * Step 12: Double click again on the channel name (voltage0). - * Expected Result: The list with the attributes should disappear - * Step 13: Double click again on the device name (ad9361-phy). - * Expected Result: The list with the channels should disappear +**UID**: TST.DBG.EXPLR.NAV + +**Description**: This test checks if the navigation tree from the debugger displays the correct information. + +**Test prerequisites**: + - :ref: `TST.DBG.EXPLR.LOAD ` + +**Preconditions**: + - Scopy is installed on the system + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Steps**: + 1. Connect a device to Scopy + 2. Connect to the device and see that the Debugger plugin appears on the left side of the screen (the tool menu) + 3. Click on the Debugger plugin + - **Expected Result:** On the left side of the Debugger tool there is an element under the filter bar that displays the devices from the connected IIO Context + 4. Click on any element from the navigation tree + - **Expected Result:** The information about that element is displayed on the right side of the screen (Details View) + 5. Click on another element from the navigation tree + - **Expected Result:** The information about the new element is displayed on the right side of the screen + 6. Double click on an device name, for example the ad9361-phy (should have an arrow on the left of the name). + - **Expected Result:** The ad9361-phy has a small arrow in the left of it and the list with the channels should be displayed below the device name + 7. Click on a channel from the list + - **Expected Result:** The information about the channel is displayed on the right side of the screen + 8. Click on another channel from the list + - **Expected Result:** The information about the new channel is displayed on the right side of the screen + 9. Double click on a channel name, for example voltage0 (should have an arrow on the left of the name). + - **Expected Result:** The list with the attributes should be displayed below the channel name + 10. Click on an attribute from the list + - **Expected Result:** The information about the attribute is displayed on the right side of the screen + 11. Click on another attribute from the list + - **Expected Result:** The information about the new attribute is displayed on the right side of the screen + 12. Double click again on the channel name (voltage0). + - **Expected Result:** The list with the attributes should disappear + 13. Double click again on the device name (ad9361-phy). + - **Expected Result:** The list with the channels should disappear + +.. _tst-dbg-explr-filter: Test 3: The Filter Bar from the debugger works correctly ---------------------------------------------------------------------------------------------------------------------------- -UID: - - TST.DBG.EXPLR.FILTER +**UID**: TST.DBG.EXPLR.FILTER + +**Description**: This test checks if the Filter Bar from the debugger works correctly. -Description: - - This test checks if the Filter Bar from the debugger works correctly. +**Test prerequisites**: + - :ref: `TST.DBG.EXPLR.LOAD ` + - :ref: `TST.DBG.EXPLR.NAV ` -Test prerequisites: - - TST.DBG.EXPLR.LOAD - - TST.DBG.EXPLR.NAV +**Preconditions**: + - Use :ref: `pluto-usb ` setup. + - OS: ANY -OS: - - any +**Steps**: + 1. Connect a device to Scopy + 2. Connect to the device. + - **Expected Result:** On the top left side of the Debugger tool there is a filter bar. The filter bar should have a placeholder text that says "Type to filter" + 3. Click on the filter bar and type a string that is not present or contained in the navigation tree. + - **Expected Result:** The navigation tree should be empty + 4. Clear the filter bar + - **Expected Result:** The navigation tree should be populated again. No element should be missing, the context element should be the first one and the devices should be displayed below it (it is opened). + 5. Click on the filter bar and type a string that is present in the navigation tree. + - **Expected Result:** The navigation tree should display only the elements that contain the string + 6. Repeat step 4 and 5 with another string that is present in the navigation tree. + - **Expected Result:** The steps should work as before. -Steps: - * Step 1: Connect a device to Scopy - * Step 2: Connect to the device. - * Expected Result: On the top left side of the Debugger tool there is a filter bar. The filter bar should have a placeholder text that says "Type to filter" - * Step 3: Click on the filter bar and type a string that is not present or contained in the navigation tree. - * Expected Result: The navigation tree should be empty - * Step 4: Clear the filter bar - * Expected Result: The navigation tree should be populated again. No element should be missing, the context element should be the first one and the devices should be displayed below it (it is opened). - * Step 5: Click on the filter bar and type a string that is present in the navigation tree. - * Expected Result: The navigation tree should display only the elements that contain the string - * Step 6: Repeat step 4 and 5 with another string that is present in the navigation tree. - * Expected Result: The steps should work as before. + +.. _tst-dbg-explr-title: Test 4: The title bar updates when selecting different elements from the navigation tree ---------------------------------------------------------------------------------------------------------------------------- -UID: - - TST.DBG.EXPLR.TITLE - -Description: - - This test checks if the title bar updates when selecting different elements from the navigation tree. - -Test prerequisites: - - TST.DBG.EXPLR.LOAD - - TST.DBG.EXPLR.NAV - -OS: - - any - -Steps: - * Step 1: Connect a device to Scopy - * Step 2: Connect to the device. - * Expected Result: On the top side of the Debugger tool there is a title bar. The title bar should have a square button with the name of the first element from the navigation tree. After this button, there should be a small green circle with a plus sign. - * Step 3: Click on any element from the navigation tree. - * Expected Result: The title bar appends the name of the selected element. The name of the element should appear after the first element name and separated in a new button. - * Step 4: Click on another element from the navigation tree. - * Expected Result: The title bar appends the name of the selected element. The name of the element should appear after the first element name and separated in a new button. - * Step 5: Open a device from the navigation panel, and then a channel from this device and select an attribute from the channel. - * Expected Result: The title bar should display the 4 names in order: The context name, the device name, the channel name and the attribute name. Each name should be separated a different button. - * Step 6: Click on any elemet from the title bar. - * Expected Result: The title bar should remove all button after it and the navigation tree should highlight the selected element. - * Step 7. Click the green circle with the plus sign. - * Expected Result: The circle should change to an x. (The current element should be added to the watch list, but this behavior is tested in a different test). +**UID**: TST.DBG.EXPLR.TITLE + +**Description**: This test checks if the title bar updates when selecting different elements from the navigation tree. + +**Test prerequisites**: + - :ref: `TST.DBG.EXPLR.LOAD ` + - :ref: `TST.DBG.EXPLR.NAV ` + +**Preconditions**: + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Steps**: + 1. Connect a device to Scopy + 2. Connect to the device. + - **Expected Result:** On the top side of the Debugger tool there is a title bar. The title bar should have a square button with the name of the first element from the navigation tree. After this button, there should be a small green circle with a plus sign. + 3. Click on any element from the navigation tree. + - **Expected Result:** The title bar appends the name of the selected element. The name of the element should appear after the first element name and separated in a new button. + 4. Click on another element from the navigation tree. + - **Expected Result:** The title bar appends the name of the selected element. The name of the element should appear after the first element name and separated in a new button. + 5. Open a device from the navigation panel, and then a channel from this device and select an attribute from the channel. + - **Expected Result:** The title bar should display the 4 names in order: The context name, the device name, the channel name and the attribute name. Each name should be separated a different button. + 6. Click on any elemet from the title bar. + - **Expected Result:** The title bar should remove all button after it and the navigation tree should highlight the selected element. + 7. Click the green circle with the plus sign. + - **Expected Result:** The circle should change to an x. (The current element should be added to the watch list, but this behavior is tested in a different test). + +.. _tst-dbg-explr-watch: Test 5: The watch list from the debugger works correctly ---------------------------------------------------------------------------------------------------------------------------- -UID: - - TST.DBG.EXPLR.WATCH - -Description: - - This test checks if the watch list from the debugger works correctly. - -Test prerequisites: - - TST.DBG.EXPLR.LOAD - - TST.DBG.EXPLR.NAV - - TST.DBG.EXPLR.TITLE - -OS: - - any - -Steps: - * Step 1: Connect a device to Scopy - * Step 2: Connect to the device - * Expected Result: At the bottom of the Debugger tool there is a watch list. The watch list should be a tabel with 4 columns: Name, Value, Type and Path. The table should have a header with the column names. There should also be another column with no name where the 'X' buttons for each row are displayed. - * Step 3: Click on an element from the navigation tree, the title bar should update with the name of the selected element and a green circle with a plus sign should exist on the right side of the title bar. - * Step 4: Click on the green circle with the plus sign. - * Expected Result: The circle should change to an x and the selected element should be added to the watch list. The element should be added in the first row of the table and the columns should be filled with the information from the selected element. - * Step 5: Repeat step 3 and 4 with another element from the navigation tree. - * Expected Result: The new element should be added to the watch list in the second row of the table and the columns should be filled with the information from the selected element. - * Step 6: Modify the value of an element from the watch list. - * Expected Result: The value should be updated in the table and in the panel above it (the details view). - * Step 7: Click on the red x from the watch list. - * Expected Result: The selected element should be removed from the watch list. - * Step 8: Click on the x from the last column of the watch list. - * Expected Result: The selected element should be removed from the watch list. - * Step 9: Repeat steps 3 to 8 with other elements from the navigation tree. - * Expected Result: Nothing should crash and the watch list should be updated correctly. - * Step 10: Add a few elements in the wathch list. Click any other element from the watch list. - * Expected Result: The navigation bar, title bar and information from the details view should be updated with the information from the selected element. - +**UID**: TST.DBG.EXPLR.WATCH + +**Description**: This test checks if the watch list from the debugger works correctly. + +**Test prerequisites**: + - :ref: `TST.DBG.EXPLR.LOAD ` + - :ref: `TST.DBG.EXPLR.NAV ` + - :ref: `TST.DBG.EXPLR.TITLE ` + +**Preconditions**: + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Steps**: + 1. Connect a device to Scopy + 2. Connect to the device + - **Expected Result:** At the bottom of the Debugger tool there is a watch list. The watch list should be a tabel with 4 columns: Name, Value, Type and Path. The table should have a header with the column names. There should also be another column with no name where the 'X' buttons for each row are displayed. + 3. Click on an element from the navigation tree, the title bar should update with the name of the selected element and a green circle with a plus sign should exist on the right side of the title bar. + 4. Click on the green circle with the plus sign. + - **Expected Result:** The circle should change to an x and the selected element should be added to the watch list. The element should be added in the first row of the table and the columns should be filled with the information from the selected element. + 5. Repeat step 3 and 4 with another element from the navigation tree. + - **Expected Result:** The new element should be added to the watch list in the second row of the table and the columns should be filled with the information from the selected element. + 6. Modify the value of an element from the watch list. + - **Expected Result:** The value should be updated in the table and in the panel above it (the details view). + 7. Click on the red x from the watch list. + - **Expected Result:** The selected element should be removed from the watch list. + 8. Click on the x from the last column of the watch list. + - **Expected Result:** The selected element should be removed from the watch list. + 9. Repeat steps 3 to 8 with other elements from the navigation tree. + - **Expected Result:** Nothing should crash and the watch list should be updated correctly. + 10. Add a few elements in the wathch list. Click any other element from the watch list. + - **Expected Result:** The navigation bar, title bar and information from the details view should be updated with the information from the selected element. + +.. _tst-dbg-explr-details: Test 6: The details view from the debugger work correctly ---------------------------------------------------------------------------------------------------------------------------- -UID: - - TST.DBG.EXPLR.DETAILS +**UID**: TST.DBG.EXPLR.DETAILS -Description: - - This test checks if the details view from the debugger work correctly. +**Description**: This test checks if the details view from the debugger work correctly. -Test prerequisites: - - TST.DBG.EXPLR.LOAD - - TST.DBG.EXPLR.NAV +**Test prerequisites**: + - :ref: `TST.DBG.EXPLR.LOAD ` + - :ref: `TST.DBG.EXPLR.NAV ` -Preconditions: +**Preconditions**: - Have the iio_info command installed on the system - -OS: - - any - -Steps: - * Step 1: Connect a device to Scopy - * Step 2: Connect to the device - * Expected Result: Ensure that on the right side of the Debugger tool there is a details view. The details view should have a title bar with the name of the selected element from the navigation tree. At first the details view should display the context attributes. - * Step 3: Test the GUI View. - * Step 3.1: Click on any element from the navigation tree. - * Expected Result: The details view should display the information from the selected element. - * Step 3.2: Click on any attribute from the details view. Change the data, press enter or click outside the attribute. - * Expected Result: Under the attribute value, a progress bar should appear and start filling. After the progress bar is filled, the progress bar should turn green for a few seconds and the attribute value should be updated. To verify that the value was updated, run an external program like iio_info and check that the value is the same - * Step 3.3: Repeat step 3.2 with the following 3 types of attributes: a text box (a box where the user can type any string), a combo box (a box where the user can select from a list of options) and a range box (a box where the user can type a number or use the arrows (or the +/- sign) to increase or decrease the value and/or write the desired value). - * Step 3.4: While selectig different elements from the navigation tree, lower part of the GUI View, the General Info section should update with the information from the selected element (information such as weather it is a hardware monitor, a trigger, has a trigger attached, if the channel is a scan element, input or output, enabled or disabled). All these informations should be present within the elements of the ADALM-PLUTO device. - * Expected Result: The General Info section should update with the information from the selected element. - * Step 4: Test the IIO View. - * Step 4.1: Click on the IIOView button, it should be next to the GUI View, under the title. - * Expected Result: The IIO View should display a snippet similar to the iio_info command. The snippet should contain the information from the selected element from the navigation tree. To check this, run the iio_info command in a terminal and compare the information from the terminal with the information from the IIO View. - * Step 4.2: Repeat step 5.1 with different elements from the navigation tree. - * Expected Result: The IIO View should update with the information from the selected element. + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Steps**: + 1. Connect a device to Scopy + 2. Connect to the device + - **Expected Result:** Ensure that on the right side of the Debugger tool there is a details view. The details view should have a title bar with the name of the selected element from the navigation tree. At first the details view should display the context attributes. + 3. Test the GUI View. + 4. Click on any element from the navigation tree. + - **Expected Result:** The details view should display the information from the selected element. + 5. Click on any attribute from the details view. Change the data, press enter or click outside the attribute. + - **Expected Result:** Under the attribute value, a progress bar should appear and start filling. After the progress bar is filled, the progress bar should turn green for a few seconds and the attribute value should be updated. To verify that the value was updated, run an external program like iio_info and check that the value is the same + 6. Repeat step 5 with the following 3 types of attributes: a text box (a box where the user can type any string), a combo box (a box where the user can select from a list of options) and a range box (a box where the user can type a number or use the arrows (or the +/- sign) to increase or decrease the value and/or write the desired value). + 7. While selectig different elements from the navigation tree, lower part of the GUI View, the General Info section should update with the information from the selected element (information such as weather it is a hardware monitor, a trigger, has a trigger attached, if the channel is a scan element, input or output, enabled or disabled). All these informations should be present within the elements of the ADALM-PLUTO device. + - **Expected Result:** The General Info section should update with the information from the selected element. + 8. Test the IIO View. + 9. Click on the IIOView button, it should be next to the GUI View, under the title. + - **Expected Result:** The IIO View should display a snippet similar to the iio_info command. The snippet should contain the information from the selected element from the navigation tree. To check this, run the iio_info command in a terminal and compare the information from the terminal with the information from the IIO View. + 10. Repeat step 9 with different elements from the navigation tree. + - **Expected Result:** The IIO View should update with the information from the selected element. + +.. _tst-dbg-explr-read_all: Test 7: The read all button correctly reads all visible attributes ---------------------------------------------------------------------------------------------------------------------------- -UID: - - TST.DBG.EXPLR.READ_ALL +**UID**: TST.DBG.EXPLR.READ_ALL -Description: - - This test checks if the read all button correctly reads all visible attributes. +**Description**: This test checks if the read all button correctly reads all visible attributes. -Test prerequisites: - - TST.DBG.EXPLR.LOAD - - TST.DBG.EXPLR.NAV - - TST.DBG.EXPLR.DETAILS +**Test prerequisites**: + - :ref: `TST.DBG.EXPLR.LOAD ` + - :ref: `TST.DBG.EXPLR.NAV ` + - :ref: `TST.DBG.EXPLR.DETAILS ` -Preconditions: +**Preconditions**: - Have the iio_attr command installed on the system - -OS: - - any - -Steps: - * Step 1: Connect a device to Scopy - * Step 2: Connect to the device - * Expected Result: The Debugger plugin appears on the left side of the screen (the tool menu) - * Step 3: Add a few elements in the watch list. The added elements should be device attributes or channel attributes. - * Step 4: Select any element from the navigation tree (preferable one with a few attributes) - * Step 5: Click the read all button. - * Expected Result: Nothing should change as all the attributes are already read. - * Step 6: In a terminal, run the iio_attr command and change the value of one of the attributes from the selected element or the watch list. - * Step 7: Click the read all button again. - * Expected Result: The value of the attribute should be updated in the details view and the watch list (optionally, based on weather the changed element is also in the watch list). - * Step 8: Also check the IIO View. - * Expected Result: The value of the attribute should be updated in the IIO View as well. + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Steps**: + 1. Connect a device to Scopy + 2. Connect to the device + - **Expected Result:** The Debugger plugin appears on the left side of the screen (the tool menu) + 3. Add a few elements in the watch list. The added elements should be device attributes or channel attributes. + 4. Select any element from the navigation tree (preferable one with a few attributes) + 5. Click the read all button. + - **Expected Result:** Nothing should change as all the attributes are already read. + 6. In a terminal, run the iio_attr command and change the value of one of the attributes from the selected element or the watch list. + 7. Click the read all button again. + - **Expected Result:** The value of the attribute should be updated in the details view and the watch list (optionally, based on weather the changed element is also in the watch list). + 8. Also check the IIO View. + - **Expected Result:** The value of the attribute should be updated in the IIO View as well. + +.. _tst-dbg-explr-log: Test 8: The log window from the debugger correctly displays the operations ---------------------------------------------------------------------------------------------------------------------------- -UID: - - TST.DBG.EXPLR.LOG - -Description: - - This test checks if the log window from the debugger correctly displays the operations. - -Test prerequisites: - - TST.DBG.EXPLR.LOAD - - TST.DBG.EXPLR.NAV - - TST.DBG.EXPLR.DETAILS - -OS: - - any - -Steps: - * Step 1: Connect a device to Scopy - * Step 2: Connect to the device and see that the Debugger plugin appears on the left side of the screen (the tool menu) - * Step 3: At the bottom of the debugger instrument, next to the 'IIO Attributes' button, there should be a 'Log' button. Click on the 'Log' button. - * Expected Result: The current window should change to the log window. - * Step 5: Select back the 'IIO Attributes' button. - * Expected Result: The current window should change back to the details view. - * Step 6: (Correct attribute change) Modify an attribute from the detais view (e.g. on the ADALM-PLUTO device, select the ad9361-phy device and the voltage0 channel and modify the gain_control_mode attribute to hybrid). - * Expected Result: The progress bar should appear and start filling. After the progress bar is filled, it should turn green and the value should be read again. - * Step 7: (Incorrect attribute change) Select the adm1177-iio device from the navigation tree, the voltage0 channel and modify the raw attribute (write whatever value you want, it should be read-only anyways). After the progress bar is filled, it should turn red and the value should be read again. - * Expected Result: The progress bar should appear and start filling. After the progress bar is filled, it should turn red and the value should be read again. - * Step 8: Click on the 'Log' button. The log window should appear and display the operations from steps 6 and 7. The operations should be displayed in the following format: [timestamp] [operation] [status] [attribute path] [old value (if write operation)] [new value]. The timestamp should be the current time, the operation should be 'W' (write) or 'R' (read), the status should be SUCCESS or FAILURE and the error code, the attribute path should be the name of the modified attribute title, separated by slashes, the old value should be the value before the modification, the new value should be the value after the modification. If the operation is a read operation, the old value should be empty (not exist). Step 6 should be a successful write operation and step 7 should be a failed write operation. After each write operation, a read operation is automatically performed. The read operation should be displayed in the log window as well. - * Expected Result: The log window should display the operations from steps 6 and 7 in the format described above. +**UID**: TST.DBG.EXPLR.LOG + +**Description**: This test checks if the log window from the debugger correctly displays the operations. + +**Test prerequisites**: + - :ref: `TST.DBG.EXPLR.LOAD ` + - :ref: `TST.DBG.EXPLR.NAV ` + - :ref: `TST.DBG.EXPLR.DETAILS ` + +**Preconditions**: + - Use :ref: `pluto-usb ` setup. + - OS: ANY + +**Steps**: + 1. Connect a device to Scopy + 2. Connect to the device and see that the Debugger plugin appears on the left side of the screen (the tool menu) + 3. At the bottom of the debugger instrument, next to the 'IIO Attributes' button, there should be a 'Log' button. Click on the 'Log' button. + - **Expected Result:** The current window should change to the log window. + 4. Select back the 'IIO Attributes' button. + - **Expected Result:** The current window should change back to the details view. + 5. (Correct attribute change) Modify an attribute from the detais view (e.g. on the ADALM-PLUTO device, select the ad9361-phy device and the voltage0 channel and modify the gain_control_mode attribute to hybrid). + - **Expected Result:** The progress bar should appear and start filling. After the progress bar is filled, it should turn green and the value should be read again. + 6. (Incorrect attribute change) Select the adm1177-iio device from the navigation tree, the voltage0 channel and modify the raw attribute (write whatever value you want, it should be read-only anyways). After the progress bar is filled, it should turn red and the value should be read again. + - **Expected Result:** The progress bar should appear and start filling. After the progress bar is filled, it should turn red and the value should be read again. + 7. Click on the 'Log' button. The log window should appear and display the operations from steps 6 and 7. The operations should be displayed in the following format: [timestamp] [operation] [status] [attribute path] [old value (if write operation)] [new value]. The timestamp should be the current time, the operation should be 'W' (write) or 'R' (read), the status should be SUCCESS or FAILURE and the error code, the attribute path should be the name of the modified attribute title, separated by slashes, the old value should be the value before the modification, the new value should be the value after the modification. If the operation is a read operation, the old value should be empty (not exist). Step 6 should be a successful write operation and step 7 should be a failed write operation. After each write operation, a read operation is automatically performed. The read operation should be displayed in the log window as well. + - **Expected Result:** The log window should display the operations from steps 6 and 7 in the format described above. diff --git a/docs/tests/plugins/debugger/index.rst b/docs/tests/plugins/debugger/index.rst index a4c97a215..935e8fdc0 100644 --- a/docs/tests/plugins/debugger/index.rst +++ b/docs/tests/plugins/debugger/index.rst @@ -11,4 +11,4 @@ Contents :maxdepth: 3 debugger_tests - debugger_preferences + debugger_preferences_tests diff --git a/docs/tests/plugins/m2k/general_settings_tests.rst b/docs/tests/plugins/m2k/general_settings_tests.rst index 7de5a734b..734bd162f 100644 --- a/docs/tests/plugins/m2k/general_settings_tests.rst +++ b/docs/tests/plugins/m2k/general_settings_tests.rst @@ -1,153 +1,159 @@ +.. _m2k_general_settings_tests: + General Settings - Test Case =============================================== -Initial Setup ------------------------------------------------ -In order to proceed through the test case, first of all delete the Scopy \*.ini file (saves previous settings made in Scopy tool). +.. note:: -Test Case + User guide: :ref: `Scopy Overview `. + +Setup environment: ----------------------------------------------- -Setup: - - M2K.* +.. _m2k-usb-general-settings: + +**M2k.Usb:** + - Open Scopy. + - Connect an **ADALM2000** device to the system by USB. + - Add the device in device browser. Test 1: Installation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.GEN.SETUP.INSTALL - -Description: - - This test verifies the installation process of Scopy, ensuring that the software and its drivers are correctly installed, uninstalled, and reinstalled. It checks the sequence of prompts during installation and validates the correct setup of the ADALM2000 drivers. - -OS: - - any - -Steps: - * Step 1: If you have a different version of Scopy installed before, please uninstall along with the M2K drivers. - * Expected Result: A dialog box will open asking if you want to uninstall Scopy and all of its contents. Upon clicking “Yes”, Scopy must be properly uninstalled. - * Step 2: Download Scopy’s latest release on GitHub (https://github.com/analogdevicesinc/scopy/releases) and run. Follow the images of the promptings on the right for reference. - * Expected Result: The prompts’ sequence will be the same as the ones posted here in the Step Resources. - * Step 3: If you want to automatically install the ADALM2000 drivers, check the box indicating “Install drivers for ADALM2000” and click “Next.” - * Expected Result: The prompt will look like the Step Resources picture. - * Step 4: If you want to manually install the ADALM2000 drivers, uncheck the box indicating “Install drivers for ADALM2000” and click “Next.” Go to this link (https://github.com/analogdevicesinc/plutosdr-m2k-drivers-win/releases) to find your preferred version of ADALM2000 drivers. - * Expected Result: The prompt will look like the Step Resources picture. - * Step 5: Continue with the installation by following the promptings. - * Expected Result: The prompts’ sequence will be the same as the ones posted here in the Step Resources. - * Step 6: After Scopy finishes its installation, a different dialog box will open – the Device Driver Installation Wizard. - * Expected Result: The prompts’ sequence will be the same as the ones posted here in the Step Resources. After completion, the “Device Driver Installation Wizard” dialog box will automatically close and direct you back to the Scopy installation setup. - * Step 7: To use the application immediately, choose the “Yes, restart the computer now” option and click “Finish.” - * Expected Result: The prompt will look like the Step Resources picture. - * Step 8: If you opt to use the application for later, choose the “No, I will restart the computer later” option and click “Finish.” - * Expected Result: The prompt will look like the Step Resources picture. +**UID:** TST.GEN.SETUP.INSTALL + +**Description:** This test verifies the installation process of Scopy, ensuring that the software and its drivers are correctly installed, uninstalled, and reinstalled. It checks the sequence of prompts during installation and validates the correct setup of the ADALM2000 drivers. + +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. + +**Steps:** + 1. If you have a different version of Scopy installed before, please uninstall along with the M2K drivers. + - **Expected Result:** A dialog box will open asking if you want to uninstall Scopy and all of its contents. Upon clicking “Yes”, Scopy must be properly uninstalled. + 2. Download Scopy’s latest release on GitHub (https://github.com/analogdevicesinc/scopy/releases) and run. + - **Expected Result:** The prompts’ sequence will be the same as the ones posted here in the Step Resources. + 3. If you want to automatically install the ADALM2000 drivers, check the box indicating “Install drivers for ADALM2000” and click “Next.” + - **Expected Result:** The prompt will look like the Step Resources picture. + 4. If you want to manually install the ADALM2000 drivers, uncheck the box indicating “Install drivers for ADALM2000” and click “Next.” Go to this link (https://github.com/analogdevicesinc/plutosdr-m2k-drivers-win/releases) to find your preferred version of ADALM2000 drivers. + - **Expected Result:** The prompt will look like the Step Resources picture. + 5. Continue with the installation by following the promptings. + - **Expected Result:** The prompts’ sequence will be the same as the ones posted here in the Step Resources. + 6. After Scopy finishes its installation, a different dialog box will open – the Device Driver Installation Wizard. + - **Expected Result:** The prompts’ sequence will be the same as the ones posted here in the Step Resources. After completion, the “Device Driver Installation Wizard” dialog box will automatically close and direct you back to the Scopy installation setup. + 7. To use the application immediately, choose the “Yes, restart the computer now” option and click “Finish.” + - **Expected Result:** The prompt will look like the Step Resources picture. + 8. If you opt to use the application for later, choose the “No, I will restart the computer later” option and click “Finish.” + - **Expected Result:** The prompt will look like the Step Resources picture. Test 2: M2K Connection and Calibration ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.GEN.SETUP.M2KCONN - -Description: - - This test verifies the connection and calibration of the M2K board using both local and remote connections. It checks the auto and manual calibration features of the M2K board. - -OS: - - any - -Steps: - * Step 1: Connect the M2K board to the PC using a micro-USB connector. - * Expected Result: The setup should look like the Steps Resources picture on the left. - * Step 2: Click the M2K icon. - * Expected Result: The instruments will appear on the left panel: Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, Logic Analyzer, Pattern Generator, Digital IO, Voltmeter, and Power Supply. - * Step 3: Click “Identify.” - * Expected Result: The “Ready” LED on the M2K board will rapidly blink 10 times indicating that it is the device identified by Scopy. - * Step 4: Click “Connect.” - * Expected Result: M2K will auto calibrate. The calibration indicator on Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, and Voltmeter instrument should start. “Calibrate” button must be enabled. - * Step 5: After connecting the M2K, manually calibrate the device by clicking the “Calibrate” button. - * Expected Result: M2K will calibrate. The calibration indicator on Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, and Voltmeter instrument should start. - * Step 6: On the home menu, click the add “+” button and input the IP address of the desired M2K board to control. The default IP address is 192.168.2.1. Click add. - * Expected Result: The setup should look like the Steps Resources picture on the left. The instruments will appear on the left panel: Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, Logic Analyzer, Pattern Generator, Digital IO, Voltmeter, and Power Supply. - * Step 7: Click “Identify.” - * Expected Result: The “Ready” LED on the M2K board will rapidly blink 10 times indicating that it is the device identified by Scopy. - * Step 8: Click “Connect.” - * Expected Result: M2K will auto calibrate. The calibration indicator on Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, and Voltmeter instrument should start. “Calibrate” button must be enabled. - * Step 9: Click “Forget device.” - * Expected Result: The M2K board icon connected remotely will disappear on the panel. - * Step 10: After connecting the M2K, manually calibrate the device by clicking the “Calibrate” button. - * Expected Result: M2K will calibrate. The calibration indicator on Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, and Voltmeter instrument should start. +**UID:** TST.GEN.SETUP.M2KCONN + +**Description:** This test verifies the connection and calibration of the M2K board using both local and remote connections. It checks the auto and manual calibration features of the M2K board. + +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. + +**Steps:** + 1. Connect the M2K board to the PC using a micro-USB connector. + - **Expected Result:** The setup should look like the Steps Resources picture on the left. + 2. Click the M2K icon. + - **Expected Result:** The instruments will appear on the left panel: Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, Logic Analyzer, Pattern Generator, Digital IO, Voltmeter, and Power Supply. + 3. Click “Identify.” + - **Expected Result:** The “Ready” LED on the M2K board will rapidly blink 10 times indicating that it is the device identified by Scopy. + 4. Click “Connect.” + - **Expected Result:** M2K will auto calibrate. The calibration indicator on Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, and Voltmeter instrument should start. “Calibrate” button must be enabled. + 5. After connecting the M2K, manually calibrate the device by clicking the “Calibrate” button. + - **Expected Result:** M2K will calibrate. The calibration indicator on Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, and Voltmeter instrument should start. + 6. On the home menu, click the add “+” button and input the IP address of the desired M2K board to control. The default IP address is 192.168.2.1. Click add. + - **Expected Result:** The setup should look like the Steps Resources picture on the left. The instruments will appear on the left panel: Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, Logic Analyzer, Pattern Generator, Digital IO, Voltmeter, and Power Supply. + 7. Click “Identify.” + - **Expected Result:** The “Ready” LED on the M2K board will rapidly blink 10 times indicating that it is the device identified by Scopy. + 8. Click “Connect.” + - **Expected Result:** M2K will auto calibrate. The calibration indicator on Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, and Voltmeter instrument should start. “Calibrate” button must be enabled. + 9. Click “Forget device.” + - **Expected Result:** The M2K board icon connected remotely will disappear on the panel. + 10. After connecting the M2K, manually calibrate the device by clicking the “Calibrate” button. + - **Expected Result:** M2K will calibrate. The calibration indicator on Oscilloscope, Spectrum Analyzer, Network Analyzer, Signal Generator, and Voltmeter instrument should start. Test 3: Save and Load Profile ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.GEN.SETUP.SAVELOAD - -Description: - - This test verifies the save and load profile feature of Scopy. It checks the ability to save and load profiles for each instrument and the ability to save and load the default profile. - -OS: - - any - -Steps: - * Step 1: Save the current profile. On the bottom part of the left panel, click the “Save” icon and save the profile as “default.ini.” Change any setting on any instrument and reload the profile. - * Expected Result: The change made on a certain instrument should be undone and the default profile should load. - * Step 2: Oscilloscope’s Settings: For Channel 1: Time Base: 100ns, Volts/Div: 2V, For Channel 2: Volts/Div: 5V. Signal Generator’s Settings: For Channel 1: Sinewave, 3Vpp, 3MHz, For Channel 2: Square Wave, 5Vpp, 900kHz. Spectrum Analyzer’s Settings: Frequency Sweep Setting: Start – 500kHz; Stop – 5MHz, Amplitude: Top – 10dBFS; Bottom – -140dBFS. - * Expected Result: See Step Resource Picture for reference. - * Step 3: Connect AWG channel 1 to Scope Ch1+ and AWG channel 2 to Scope Ch2+. Connect Scope Ch1- and Ch2- to GND. - * Expected Result: See Step Resource Picture for reference. - * Step 4: Run the Signal Generator instrument, and check the output on Oscilloscope and Spectrum Analyzer. Then save the profile as “profile1.ini.” - * Expected Result: The output waveform on the Oscilloscope should be set in a way that the signals are can properly be seen compared with the default settings. In the Spectrum Analyzer the fundamental frequency of both signals should be present in the plot window set by the sweep setting. - * Step 5: Reload the default setting by deleting the file in ``C:\Users\your_username\AppData\Roaming\ADI``. Reload “profile1.ini” and run the signal generator and oscilloscope or Spectrum Analyzer. - * Expected Result: The result should be the same on the saved profile. - * Step 6: Pattern Generator’s Settings: Enable DIO2, DIO3, DIO6, DIO7, DIO10, DIO11, DIO14 and DIO15. Group DIO1 and DIO2 set to random and 1MHz frequency. Group DIO10 and DIO11 and set to Binary Counter at 1MHz. Set the other enabled DIOs to clock at 1MHz. Logic Analyzer’s Settings: Group DIO0, DIO1, DIO4, DIO5, DIO8, DIO9, DIO12, and DIO13 and set to parallel mode. Group DIO2 and DIO3 and set to parallel mode. Group DIO10 and DIO11 and set to parallel mode. Set the time base to 1us. Digital IO’s Settings: Set DIO0, DIO1, DIO4, DIO5, DIO8, DIO9, DIO12, and DIO13 to output. - * Expected Result: See step resource picture for reference. - * Step 7: Run the three instrument and open Logic Analyzer instrument. Save the profile as “profile2.ini”. - * Expected Result: See that the profile is saved on the desired location and the logic analyzer should be set in a way that the rising and falling edge of the signal is clearly seen. - * Step 8: Reload the default setting by deleting the file in ``C:\Users\your_username\AppData\Roaming\ADI``. Reload “profile2.ini”, and run Pattern Generator, DigitalIO and Logic Analyzer. - * Expected Result: The result should be the same on the saved profile. - * Step 9: Power Supply’s Settings: Set to “Tracking Mode” with 35% tracking setting. Set positive supply to 3V and the negative supply should automatically be set to -1.05V. Signal Generator’s Settings: For Channel 1: Sinewave, 2Vpp, 10kHz, For Channel 2: Sinewave, 1Vpp, 10kHz, 90deg phase. Voltmeter Settings: For Channel 1: DC (Direct Current), History – OFF, For Channel 2: AC (20Hz – 40kHz), History – ON (1s). Network Analyzer: Reference: Channel 1, 2V Amplitude, Sweep: Linear, Start – 1kHz, Stop – 100kHz, Sample Count – 200, Display: Min. Magnitude – -90dB, Max. Magnitude – 10dB, Min. Phase – -100deg, Max. Phase – 100deg. - * Expected Result: See step resource picture for reference. - * Step 10: Connect Positive Supply to Scope Ch1+, connect AWG1 to Scope Ch2+, connect scope Ch1- and Scope Ch2- to GND. - * Expected Result: See Step Resource Picture for reference. - * Step 11: Run Power Supply, Voltmeter and Signal Generator to see if the voltmeter will be able to read 3V on channel 1 and 0.7V on channel 2. Save the profile as “profile3.ini”. - * Expected Result: Channel 1’s history should be off and channel 2’s history should be present and the reading must be stable. - * Step 12: Reload the default setting by deleting the file in ``C:\Users\your_username\AppData\Roaming\ADI``. Reload “profile3.ini”, and run Power Supply, Voltmeter and Signal Generator. - * Expected Result: The result should be the same on the saved profile. The network analyzer’s setting should be retained. +**UID:** TST.GEN.SETUP.SAVELOAD + +**Description:** This test verifies the save and load profile feature of Scopy. It checks the ability to save and load profiles for each instrument and the ability to save and load the default profile. + +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. + +**Steps:** + 1. Save the current profile. On the bottom part of the left panel, click the “Save” icon and save the profile as “default.ini.” Change any setting on any instrument and reload the profile. + - **Expected Result:** The change made on a certain instrument should be undone and the default profile should load. + 2. Oscilloscope’s Settings: For Channel 1: Time Base: 100ns, Volts/Div: 2V, For Channel 2: Volts/Div: 5V. Signal Generator’s Settings: For Channel 1: Sinewave, 3Vpp, 3MHz, For Channel 2: Square Wave, 5Vpp, 900kHz. Spectrum Analyzer’s Settings: Frequency Sweep Setting: Start – 500kHz; Stop – 5MHz, Amplitude: Top – 10dBFS; Bottom – -140dBFS. + - **Expected Result:** See Step Resource Picture for reference. + 3. Connect AWG channel 1 to Scope Ch1+ and AWG channel 2 to Scope Ch2+. Connect Scope Ch1- and Ch2- to GND. + - **Expected Result:** See Step Resource Picture for reference. + 4. Run the Signal Generator instrument, and check the output on Oscilloscope and Spectrum Analyzer. Then save the profile as “profile1.ini.” + - **Expected Result:** The output waveform on the Oscilloscope should be set in a way that the signals are can properly be seen compared with the default settings. In the Spectrum Analyzer the fundamental frequency of both signals should be present in the plot window set by the sweep setting. + 5. Reload the default setting by deleting the file in ``C:\Users\your_username\AppData\Roaming\ADI``. Reload “profile1.ini” and run the signal generator and oscilloscope or Spectrum Analyzer. + - **Expected Result:** The result should be the same on the saved profile. + 6. Pattern Generator’s Settings: Enable DIO2, DIO3, DIO6, DIO7, DIO10, DIO11, DIO14 and DIO15. Group DIO1 and DIO2 set to random and 1MHz frequency. Group DIO10 and DIO11 and set to Binary Counter at 1MHz. Set the other enabled DIOs to clock at 1MHz. Logic Analyzer’s Settings: Group DIO0, DIO1, DIO4, DIO5, DIO8, DIO9, DIO12, and DIO13 and set to parallel mode. Group DIO2 and DIO3 and set to parallel mode. Group DIO10 and DIO11 and set to parallel mode. Set the time base to 1us. Digital IO’s Settings: Set DIO0, DIO1, DIO4, DIO5, DIO8, DIO9, DIO12, and DIO13 to output. + - **Expected Result:** See step resource picture for reference. + 7. Run the three instrument and open Logic Analyzer instrument. Save the profile as “profile2.ini”. + - **Expected Result:** See that the profile is saved on the desired location and the logic analyzer should be set in a way that the rising and falling edge of the signal is clearly seen. + 8. Reload the default setting by deleting the file in ``C:\Users\your_username\AppData\Roaming\ADI``. Reload “profile2.ini”, and run Pattern Generator, DigitalIO and Logic Analyzer. + - **Expected Result:** The result should be the same on the saved profile. + 9. Power Supply’s Settings: Set to “Tracking Mode” with 35% tracking setting. Set positive supply to 3V and the negative supply should automatically be set to -1.05V. Signal Generator’s Settings: For Channel 1: Sinewave, 2Vpp, 10kHz, For Channel 2: Sinewave, 1Vpp, 10kHz, 90deg phase. Voltmeter Settings: For Channel 1: DC (Direct Current), History – OFF, For Channel 2: AC (20Hz – 40kHz), History – ON (1s). Network Analyzer: Reference: Channel 1, 2V Amplitude, Sweep: Linear, Start – 1kHz, Stop – 100kHz, Sample Count – 200, Display: Min. Magnitude – -90dB, Max. Magnitude – 10dB, Min. Phase – -100deg, Max. Phase – 100deg. + - **Expected Result:** See step resource picture for reference. + 10. Connect Positive Supply to Scope Ch1+, connect AWG1 to Scope Ch2+, connect scope Ch1- and Scope Ch2- to GND. + - **Expected Result:** See Step Resource Picture for reference. + 11. Run Power Supply, Voltmeter and Signal Generator to see if the voltmeter will be able to read 3V on channel 1 and 0.7V on channel 2. Save the profile as “profile3.ini”. + - **Expected Result:** Channel 1’s history should be off and channel 2’s history should be present and the reading must be stable. + 12. Reload the default setting by deleting the file in ``C:\Users\your_username\AppData\Roaming\ADI``. Reload “profile3.ini”, and run Power Supply, Voltmeter and Signal Generator. + - **Expected Result:** The result should be the same on the saved profile. The network analyzer’s setting should be retained. Test 4: Preferences ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.GEN.SETUP.PREFERENCES - -Description: - - This test verifies the preferences feature of Scopy. It checks the seven sections of the preferences menu and the options available in each section. - -OS: - - any - -Steps: - * Step 1: Click the Preferences option located below the instrument options. - * Expected Result: The Preferences menu should contain seven sections: General, Oscilloscope, Spectrum Analyzer, Logic Analyzer, Signal Generator, Network Analyzer, and Debug. Please see the step resource image for reference. - * Step 2: Enable “Save session when closing Scopy.” - * Step 3: Use Scopy and play with its instruments, changing the configurations and settings. Close Scopy and reopen. - * Step 4: Enable “Show advanced device information.” - * Step 5: On the Home menu, click the M2K icon and drag down to see the advanced device information. - * Expected Result: A dialog box should appear confirming the reset command. - * Step 6: Reset profile to default by deleting the files from ``C:\Users\your_username\AppData\Roaming\ADI``. Enable auto save feature. Load profile 1, profile 2 or profile 3 from Testing Save and Load feature steps. Close Scopy and Open. - * Step 7: Following step 6, open Scopy and the current profile should be one of the profiles created from the Save and load test case. On the General Setting preference, the reset scopy is located in the lower right of the Scopy screen. Click reset scopy. - * Expected Result: Reopening Scopy, the profile loaded should be the profile saved. Scopy should return to its default setting. Similar with deleting the files from folder. - * Step 8: Under the Oscilloscope section, labels on the plot may be toggled on or off. - * Expected Result: Checking the Oscilloscope plot, the labels must synchronize with the option chosen. See Step Resource image for reference. - * Step 9: On the Spectrum Analyzer section, an option to search or not to search marker peaks in the visible domain is given. - * Expected Result: See Step Resource Picture for reference. - * Step 10: Signal Generator’s Settings: For Channel 1: Sinewave, 10Vpp, 500kHz. Spectrum Analyzer’s Sweep Settings: Start – 700kHz, Stop – 1MHz. Disable Channel 2. Connect AWG channel 1 to Scope Ch1+. - * Step 11: Under the Marker Settings, click Marker 1 then “Peak.” Turn the Marker Table on and look for the marked frequencies. - * Expected Result: A marker labeled M1 will automatically appear on the spectrum upon clicking Marker 1. Clicking “Peak” will put the Marker on the 500kHz mark. - * Step 12: Under the Signal Generator section, The number of periods shown may be adjusted from 2 to 9. - * Expected Result: The signal generator’s graphical representation must follow the desired number of periods on the lower frequency channel (if both channels are configured to output waveform signals). When numbers other than 2 to 9 are entered, the number and the line under it turns to red. See Step resource image for reference. - * Step 13: On the Network Analyzer section, an option to display 0dB on the graph is available. Click to enable it. - * Expected Result: See Step Resource Picture for reference. - * Step 14: Construct a first-order low pass RC filter with the following components: R = 470 Ohms, C = 1uF. This will have a cut-off frequency of ~340 Hz. - * Expected Result: The set up should look like in steps resources picture on the left. - * Step 15: Network Analyzer’s Settings: Reference: Channel 1, 1V Amplitude, 0V Offset. Sweep: Logarithmic, Start – 10Hz, Stop – 500kHz, Sample Count - 100. Display: Min. Magnitude – -90dB, Max. Magnitude – 10dB, Min. Phase – -150deg, Max. Phase – 60deg. Run Network Analyzer. - * Expected Result: The Bode Plot has 0dB on its labels. See Step Resource Picture for reference. +**UID:** TST.GEN.SETUP.PREFERENCES + +**Description:** This test verifies the preferences feature of Scopy. It checks the seven sections of the preferences menu and the options available in each section. + +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. + +**Steps:** + 1. Click the Preferences option located below the instrument options. + - **Expected Result:** The Preferences menu should contain seven sections: General, Oscilloscope, Spectrum Analyzer, Logic Analyzer, Signal Generator, Network Analyzer, and Debug. Please see the step resource image for reference. + 2. Enable “Save session when closing Scopy.” + 3. Use Scopy and play with its instruments, changing the configurations and settings. Close Scopy and reopen. + 4. Enable “Show advanced device information.” + 5. On the Home menu, click the M2K icon and drag down to see the advanced device information. + - **Expected Result:** A dialog box should appear confirming the reset command. + 6. Reset profile to default by deleting the files from ``C:\Users\your_username\AppData\Roaming\ADI``. Enable auto save feature. Load profile 1, profile 2 or profile 3 from Testing Save and Load feature steps. Close Scopy and Open. + 7. Following step 6, open Scopy and the current profile should be one of the profiles created from the Save and load test case. On the General Setting preference, the reset scopy is located in the lower right of the Scopy screen. Click reset scopy. + - **Expected Result:** Reopening Scopy, the profile loaded should be the profile saved. Scopy should return to its default setting. Similar with deleting the files from folder. + 8. Under the Oscilloscope section, labels on the plot may be toggled on or off. + - **Expected Result:** Checking the Oscilloscope plot, the labels must synchronize with the option chosen. See Step Resource image for reference. + 9. On the Spectrum Analyzer section, an option to search or not to search marker peaks in the visible domain is given. + - **Expected Result:** See Step Resource Picture for reference. + 10. Signal Generator’s Settings: For Channel 1: Sinewave, 10Vpp, 500kHz. Spectrum Analyzer’s Sweep Settings: Start – 700kHz, Stop – 1MHz. Disable Channel 2. Connect AWG channel 1 to Scope Ch1+. + 11. Under the Marker Settings, click Marker 1 then “Peak.” Turn the Marker Table on and look for the marked frequencies. + - **Expected Result:** A marker labeled M1 will automatically appear on the spectrum upon clicking Marker 1. Clicking “Peak” will put the Marker on the 500kHz mark. + 12. Under the Signal Generator section, The number of periods shown may be adjusted from 2 to 9. + - **Expected Result:** The signal generator’s graphical representation must follow the desired number of periods on the lower frequency channel (if both channels are configured to output waveform signals). When numbers other than 2 to 9 are entered, the number and the line under it turns to red. See Step resource image for reference. + 13. On the Network Analyzer section, an option to display 0dB on the graph is available. Click to enable it. + - **Expected Result:** See Step Resource Picture for reference. + 14. Construct a first-order low pass RC filter with the following components: R = 470 Ohms, C = 1uF. This will have a cut-off frequency of ~340 Hz. + - **Expected Result:** The set up should look like in steps resources picture on the left. + 15. Network Analyzer’s Settings: Reference: Channel 1, 1V Amplitude, 0V Offset. Sweep: Logarithmic, Start – 10Hz, Stop – 500kHz, Sample Count - 100. Display: Min. Magnitude – -90dB, Max. Magnitude – 10dB, Min. Phase – -150deg, Max. Phase – 60deg. Run Network Analyzer. + - **Expected Result:** The Bode Plot has 0dB on its labels. See Step Resource Picture for reference. diff --git a/docs/tests/plugins/m2k/pattern_generator_tests.rst b/docs/tests/plugins/m2k/pattern_generator_tests.rst index 2129b87dc..c6378276d 100644 --- a/docs/tests/plugins/m2k/pattern_generator_tests.rst +++ b/docs/tests/plugins/m2k/pattern_generator_tests.rst @@ -1,220 +1,227 @@ +.. _m2k_pattern_generator_tests: + M2K Pattern Generator - Test Suite ==================================================================================================== -Initial Setup ----------------------------------------------------------------------------------------------------- +.. note:: -In order to proceed through the test case, first of all delete the Scopy \*.ini file (saves previous settings made in Scopy tool). + User guide: :ref: `Scopy Overview `. -Test Case +Setup environment: ---------------------------------------------------------------------------------------------------- -Setup: - - M2K.* +.. _m2k-usb-pattern-generator: + +**M2k.Usb:** + - Open Scopy. + - Connect an **ADALM2000** device to the system by USB. + - Add the device in device browser. Test 1: Individual Channel Operation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -UID: - - TST.M2K.PG.INDIVIDUAL_CHANNEL_OPERATION - -Description: - - This test case verifies the functionality of the pattern generator in individual channel operation mode. - -OS: - - any - -Steps: - * Test 1: Checking Individual Channels: Use PP as output - * Test 1.1: Connect DIO-0, CH0 to Scope CH1+, GND to Scope CH1-. - * Test 1.2: Enable CH0. Double click on the DIO 0 indicator on the plot to open DIO 0 settings. Select pattern as Clock with a 5 KHz clock signal with duty cycle of 50%. Run instrument. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Test 1.3: Monitor CH0 through oscilloscope. Open built-in measurement feature for frequency, amplitude and duty cycle. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). In the oscilloscope, Frequency: 5 KHz, Amplitude: 3.2V to 3.4 V, Duty+: 50 %, Duty-:50% - * Test 1.4: Change frequency: 100 KHz, duty cycle: 30%. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). In the oscilloscope, Frequency: 100 KHz, Amplitude: 3.2V to 3.4 V, Duty+: 30 %, Duty-: 70% - * Test 1.5: Change frequency: 1 MHz, duty cycle: 60%. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). In the oscilloscope, Frequency: 1 MHz, Amplitude: 3.2V to 3.4 V, Duty+: 60 %, Duty-: 40% - * Test 1.6: Change frequency: 10 MHz, duty cycle: 70%. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). In the oscilloscope, Frequency: 1 MHz, Amplitude: 3.2V to 3.4 V, Duty+: 70 %, Duty-: 30% - * Test 1.7: Repeat steps 1.2 to 1.7 for DIO-1 to DIO-15. +---------------------------------------------------------------------------------------------------- + +**UID:** TST.M2K.PG.INDIVIDUAL_CHANNEL_OPERATION + +**Description:** This test case verifies the functionality of the pattern generator in individual channel operation mode. + +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. + +**Steps:** + 1. Checking Individual Channels: Use PP as output + 2. Connect DIO-0, CH0 to Scope CH1+, GND to Scope CH1-. + 3. Enable CH0. Double click on the DIO 0 indicator on the plot to open DIO 0 settings. Select pattern as Clock with a 5 KHz clock signal with duty cycle of 50%. Run instrument. + * Expected Result: You should see a square wave with 5 KHz frequency, 50% duty cycle. + 4. Monitor CH0 through oscilloscope. Open built-in measurement feature for frequency, amplitude and duty cycle. + * Expected Result: You should see a square wave with 5 KHz frequency, 50% duty cycle. In the oscilloscope, Frequency: 5 KHz, Amplitude: 3.2V to 3.4 V, Duty+: 50 %, Duty-:50% + 5. Change frequency: 100 KHz, duty cycle: 30%. + * Expected Result: You should see a square wave with 100 KHz frequency, 30% duty cycle. In the oscilloscope, Frequency: 100 KHz, Amplitude: 3.2V to 3.4 V, Duty+: 30 %, Duty-: 70% + 6. Change frequency: 1 MHz, duty cycle: 60%. + * Expected Result: You should see a square wave with 1 MHz frequency, 60% duty cycle. In the oscilloscope, Frequency: 1 MHz, Amplitude: 3.2V to 3.4 V, Duty+: 60 %, Duty-: 40% + 7. Change frequency: 10 MHz, duty cycle: 70%. + * Expected Result: You should see a square wave with 10 MHz frequency, 70% duty cycle. In the oscilloscope, Frequency: 1 MHz, Amplitude: 3.2V to 3.4 V, Duty+: 70 %, Duty-: 30% + 8. Repeat steps 2. to 7. for DIO-1 to DIO-15. * Expected Result: Behavior of each channel should be the same as with DIO-0, CH0. As the parameters are changed, the trace displayed in oscilloscope should follow. - * Test 2: Checking Phase - * Test 2.1: Connect the following: DIO0 to ScopeCH1+, DIO1 to ScopeCH2+. GND to Scope CH1- and Scope CH2-. - * Test 2.2: Enable DIO0 and DIO1. Set the following parameters: DIO0: Frequency: 5 KHz, Phase: 0°, Duty Cycle: 50%; DIO1: Frequency: 5 KHz, Phase: 45°, Duty Cycle: 50 %. Run instrument. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Test 2.3: Monitor pattern generator output through oscilloscope. + 9. Checking Phase + 10. Connect the following: DIO0 to ScopeCH1+, DIO1 to ScopeCH2+. GND to Scope CH1- and Scope CH2-. + 11. Enable DIO0 and DIO1. Set the following parameters: DIO0: Frequency: 5 KHz, Phase: 0°, Duty Cycle: 50%; DIO1: Frequency: 5 KHz, Phase: 45°, Duty Cycle: 50 %. Run instrument. + * Expected Result: You should see two square waves with 5 KHz frequency, 50% duty cycle. DIO0 should be at 0° phase and DIO1 should be at 45° phase. + 12. Monitor pattern generator output through oscilloscope. * Expected Result: Use cursor feature of the oscilloscope. Move the vertical cursors as shown in steps resources. ΔT = 24us to 26us, corresponding to the 45° phase shift. - * Test 2.4: Change DIO1 phase: 120°. + 13. Change DIO1 phase: 120°. * Expected Result: Use cursor feature of the oscilloscope. Move the vertical cursors as shown in steps resources. ΔT = 65us to 67us, corresponding to the 120° phase shift. - * Test 2.5: Change DIO1 phase: 270°. + 14. Change DIO1 phase: 270°. * Expected Result: Use cursor feature of the oscilloscope. Move the vertical cursors as shown in steps resources. ΔT = 149us to 151us, corresponding to the 270° phase shift. - * Test 2.6: Set DIO1 phase to 0°. Now repeat steps for DIO0. + 15. Set DIO1 phase to 0°. Now repeat steps for DIO0. * Expected Result: Behavior of channel should be the same as with DIO1, CH1. - * Test 2.7: Use other channels, DIO2 to DIO15, and repeat steps to verify each. + 16. Use other channels, DIO2 to DIO15, and repeat steps to verify each. * Expected Result: Behavior of each channel should be the same as with DIO1, CH1. +**Result:** PASS/FAIL Test 2: Group Channel Operation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +---------------------------------------------------------------------------------------------------- -UID: - - TST.M2K.PG.GROUP_CHANNEL_OPERATION +**UID:** TST.M2K.PG.GROUP_CHANNEL_OPERATION -Description: - - This test case verifies the functionality of the pattern generator in group channel operation mode. +**Description:** This test case verifies the functionality of the pattern generator in group channel operation mode. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - Use :ref:`M2k.Usb ` setup. + - OS: ANY -Steps: - * Step 1: Checking Group Channels and Patterns: Use PP as output. Binary Counter - * Step 1.1: Create a 4-channel group. Enable channels DIO0 to DIO3. Then click “Group” and double click on the channel indicators on the plot, DIO 0 to DIO 3, then click “Done”. Change pattern to Binary Counter. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 1.2: Open logic analyzer. Make a group with channels DIO0 to DIO3. Once grouped, add parallel for the decoder. Make sure to select correct data lines in the parallel decoder settings. +**Steps:** + 1. Checking Group Channels and Patterns: Use PP as output. Binary Counter + 2. Create a 4-channel group. Enable channels DIO0 to DIO3. Then click “Group” and double click on the channel indicators on the plot, DIO 0 to DIO 3, then click “Done”. Change pattern to Binary Counter. + * Expected Result: The plot should show a binary counter from 1 to e. The frequency should be 5 KHz. + 3. Open logic analyzer. Make a group with channels DIO0 to DIO3. Once grouped, add parallel for the decoder. Make sure to select correct data lines in the parallel decoder settings. * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. - * Step 1.3: Check the frequency of each channel through oscilloscope. Connect DIO0 to scopech1+. Enable built-in measurement for frequency. + 4. Check the frequency of each channel through oscilloscope. Connect DIO0 to scopech1+. Enable built-in measurement for frequency. * Expected Result: Frequency shown should be 2.4 KHz to 2.6 KHz, corresponding to set clock frequency/2. - * Step 1.4: Connect DIO1 to scopech1+. Enable built-in measurement for frequency. + 5. Connect DIO1 to scopech1+. Enable built-in measurement for frequency. * Expected Result: Frequency shown should be 1.24 KHz to 1.27 KHz, corresponding to set clock frequency/4. - * Step 1.5: Connect DIO2 to scopech1+. Enable built-in measurement for frequency. + 6. Connect DIO2 to scopech1+. Enable built-in measurement for frequency. * Expected Result: Frequency shown should be 620 Hz to 630 Hz, corresponding to set clock frequency/8. - * Step 1.6: Connect DIO3 to scopech1+. Enable built-in measurement for frequency. + 7. Connect DIO3 to scopech1+. Enable built-in measurement for frequency. * Expected Result: Frequency shown should be 310 Hz to 315 Hz, corresponding to set clock frequency/16. - * Step 2: Random - * Step 2.1: Change pattern to Random. Frequency: 5KHz - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 2.2: Monitor through logic analyzer. Use parallel as decoder. + 8. Random + 9. Change pattern to Random. Frequency: 5KHz + * Expected Result: The plot should show random data. + 10. Monitor through logic analyzer. Use parallel as decoder. * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalents should be seen in logic analyzer. - * Step 2.3: Change frequency: 100 KHz - * Expected Result: The interface should look like in the “Step Resources” picture (left side). There should be new set of data and hexadecimal equivalents. - * Step 2.4: Monitor through logic analyzer. Use parallel as decoder. + 11. Change frequency: 100 KHz + * Expected Result: The frequency should now be 100 KHz. There should be new set of data and hexadecimal equivalents. + 12. Monitor through logic analyzer. Use parallel as decoder. * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalents should be seen in logic analyzer. - * Step 3: Number pattern - * Step 3.1: Change pattern to Number pattern. Set number to 3. Enable DIO 4 and set to Clock pattern with 5kHz frequency. Do not add DIO 4 to group, keep it as individual channel. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 3.2: Monitor through logic analyzer. Enable DIO 4 as individual channel. Use parallel as decoder. Set data lines to DIO 0 to DIO 3 and set clock line to DIO 4. + 13. Number pattern + 14. Change pattern to Number pattern. Set number to 3. Enable DIO 4 and set to Clock pattern with 5kHz frequency. Do not add DIO 4 to group, keep it as individual channel. + * Expected Result: The plot should contain the group channel and individual channel. The group channel should show the number pattern and the individual channel should show the clock pattern. + 15. Monitor through logic analyzer. Enable DIO 4 as individual channel. Use parallel as decoder. Set data lines to DIO 0 to DIO 3 and set clock line to DIO 4. * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same number is seen in logic analyzer. Number: 3 - * Step 3.3: Change number to 14. In the plot, it will show the hexadecimal equivalent which is E. + 16. Change number to 14. In the plot, it will show the hexadecimal equivalent which is E. * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalent is seen in logic analyzer. Hexadecimal equivalent: E - * Step 3.4: Add channels DIO4 to DIO7 to the group. It will now be an 8-channel group. Change number to 254. The plot will show the hexadecimal equivalent which is FE. + 17. Add channels DIO4 to DIO7 to the group. It will now be an 8-channel group. Change number to 254. The plot will show the hexadecimal equivalent which is FE. * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same hexadecimal equivalent is seen in logic analyzer. Hexadecimal equivalent: FE - * Step 4: Gray Counter - * Step 4.1: Change pattern to Gray Counter. Disable DIO 8. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 4.2: Monitor through logic analyzer. Choose parallel for the decoder. Set Clock line as X. + 18. Gray Counter + 19. Change pattern to Gray Counter. Disable DIO 8. + * Expected Result: The plot should show a gray counter from 1 to 7. The frequency should be 5 KHz. + 20. Monitor through logic analyzer. Choose parallel for the decoder. Set Clock line as X. * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. One bit change per clock cycle. - * Step 5: UART - * Step 5.1: Dissolve current group channel. Enable DIO 0 channel and double click on the channel indicator on the plot. Change channel pattern to UART. Set parameters: Baud: 9600, Stop bit: 1, no parity, Data to send: ‘HELLO’. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 5.2: Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 9600, Data bits: 8, no parity. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 5.3: Change set parameters: Baud: 115200, Stop bit: 1, even parity, Data to send: ‘HI’. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 5.4: Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 115200, Data bits: 8, even parity. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 5.5: Change set parameters: Baud: 115200, Stop bit: 1, odd parity, Data to send: ‘HI’. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 5.6: Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 115200, Data bits: 8, odd parity. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 6: SPI - * Step 6.1: Disable DIO 0. Enable and select DIO5 to DIO7 to create a 3-channel group. Change pattern to SPI. Set the following parameters: Bytes per frame: 2, inter frame space: 3, Data: ABCD1234. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 6.2: Monitor the channel through logic analyzer. Use SPI as decoder. Refer to steps resources picture for the configuration of logic analyzer. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 6.3: Change the following parameters: Bytes per frame: 1, inter frame space: 4, Data: ABCD1234. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 6.4: Monitor the channel through logic analyzer. Use SPI as decoder. Refer to steps resources picture for the configuration of logic analyzer. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 7: I2C - * Step 7.1: Dissolve current group channel. Enable and select DIO0 and DIO1 to create a 2-channel group. Change pattern to I2C. Set the following parameters: Address: 72, Inter frame space: 3, Data: ABCD1234. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 7.2: Monitor the channel through logic analyzer. Use I2C as decoder. Refer to steps resources picture for the configuration of logic analyzer. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 8: Pulse Pattern - * Step 8.1: Change pattern to Pulse Pattern. Set the following parameters: Low: 5, High: 1, Counter Init: 0, Delay: 10, Number of Pulses: 5. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 8.2: Monitor the channels through logic analyzer. Refer to steps resources picture for the configuration of logic analyzer. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). + 21. UART + 22. Dissolve current group channel. Enable DIO 0 channel and double click on the channel indicator on the plot. Change channel pattern to UART. Set parameters: Baud: 9600, Stop bit: 1, no parity, Data to send: ‘HELLO’. + * Expected Result: The plot should show the data ‘HELLO’ in ASCII format. The frequency should be 9600 Hz. + 23. Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 9600, Data bits: 8, no parity. + * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same ASCII data should be seen in logic analyzer. + 24. Change set parameters: Baud: 115200, Stop bit: 1, even parity, Data to send: ‘HI’. + * Expected Result: The plot should show the data ‘HI’ in ASCII format. The frequency should be 115200 Hz. + 25. Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 115200, Data bits: 8, even parity. + * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same ASCII data should be seen in logic analyzer. + 26. Change set parameters: Baud: 115200, Stop bit: 1, odd parity, Data to send: ‘HI’. + * Expected Result: The plot should show the data ‘HI’ in ASCII format. The frequency should be 115200 Hz. + 27. Monitor the channel in the logic analyzer. Use UART as decoder. Set Baud: 115200, Data bits: 8, odd parity. + * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same ASCII data should be seen in logic analyzer. + 28. SPI + 29. Disable DIO 0. Enable and select DIO5 to DIO7 to create a 3-channel group. Change pattern to SPI. Set the following parameters: Bytes per frame: 2, inter frame space: 3, Data: ABCD1234. + * Expected Result: The plot should show the data ‘ABCD1234’ in ASCII format. The frequency should be 5 KHz. + 30. Monitor the channel through logic analyzer. Use SPI as decoder. Refer to steps resources picture for the configuration of logic analyzer. + * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same ASCII data should be seen in logic analyzer. + 31. Change the following parameters: Bytes per frame: 1, inter frame space: 4, Data: ABCD1234. + * Expected Result: The plot should show the data ‘ABCD1234’ in ASCII format. The frequency should be 5 KHz. + 32. Monitor the channel through logic analyzer. Use SPI as decoder. Refer to steps resources picture for the configuration of logic analyzer. + * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same ASCII data should be seen in logic analyzer. + 33. I2C + 34. Dissolve current group channel. Enable and select DIO0 and DIO1 to create a 2-channel group. Change pattern to I2C. Set the following parameters: Address: 72, Inter frame space: 3, Data: ABCD1234. + * Expected Result: The plot should show the data ‘ABCD1234’ in ASCII format. The frequency should be 5 KHz. + 35. Monitor the channel through logic analyzer. Use I2C as decoder. Refer to steps resources picture for the configuration of logic analyzer. + * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. The same ASCII data should be seen in logic analyzer. + 36. Pulse Pattern + 37. Change pattern to Pulse Pattern. Set the following parameters: Low: 5, High: 1, Counter Init: 0, Delay: 10, Number of Pulses: 5. + * Expected Result: The plot should show 5 pulses with 5 low and 1 high. + 38. Monitor the channels through logic analyzer. Refer to steps resources picture for the configuration of logic analyzer. + * Expected Result: The plot in the logic analyzer should resemble the plot seen in the pattern generator. +**Result:** PASS/FAIL Test 3: Simultaneous Group and Individual Channels Operation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +---------------------------------------------------------------------------------------------------- -UID: - - TST.M2K.PG.SIMULTANEOUS_GROUP_AND_INDIVIDUAL_CHANNELS_OPERATION +**UID:** TST.M2K.PG.SIMULTANEOUS_GROUP_AND_INDIVIDUAL_CHANNELS_OPERATION -Description: - - This test case verifies the functionality of the pattern generator in simultaneous group and individual channels operation mode. +**Description:** This test case verifies the functionality of the pattern generator in simultaneous group and individual channels operation mode. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - Use :ref:`M2k.Usb ` setup. + - OS: ANY -Steps: - * Step 1: Checking Group and Individual Channels Simultaneously: Use PP as output. - * Step 1.1: Enable and select channels DIO0 to DIO3 to create 4-channel group. Change group pattern to Binary Counter with frequency set to 5 KHz. Enable DIO4 channel and set as clock with frequency of 5 KHz. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 1.2: Monitor DIO4 through oscilloscope. And at the same time monitor the group channel through logic analyzer. +**Steps:** + 1. Checking Group and Individual Channels Simultaneously: Use PP as output. + 2. Enable and select channels DIO0 to DIO3 to create 4-channel group. Change group pattern to Binary Counter with frequency set to 5 KHz. Enable DIO4 channel and set as clock with frequency of 5 KHz. + 3. Monitor DIO4 through oscilloscope. And at the same time monitor the group channel through logic analyzer. * Expected Result: On logic analyzer, the plot should resemble the plot seen in pattern generator, the group channel as well as the individual channel DIO4. On oscilloscope, frequency can be viewed by enabling measurement feature, frequency: 5KHz. - * Step 1.3: Do not dissolve group channel. Add another group channel. Enable and select DIO5, create a 1-channel group for UART. Change pattern to UART. Baud: 2400, stop bit: 1, no parity, Data: ‘HI’. Also, individual DIO4 channel remains enabled. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 1.4: Monitor the 2 groups and DIO4 through logic analyzer. + 4. Do not dissolve group channel. Add another group channel. Enable and select DIO5, create a 1-channel group for UART. Change pattern to UART. Baud: 2400, stop bit: 1, no parity, Data: ‘HI’. Also, individual DIO4 channel remains enabled. + 5. Monitor the 2 groups and DIO4 through logic analyzer. * Expected Result: On logic analyzer, the plot should resemble the plot seen in pattern generator. - * Step 1.5: Do not dissolve group channels. Disable Group UART. Add another group channel. Enable and select DIO6 to DIO9, create a 4-channel group. Change pattern to Gray Counter. Frequency: 10 KHz. Name this group as Group GC. Also, individual DIO4 channel remains enabled. - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 1.6: Monitor the 2 groups and DIO4 through logic analyzer. + 6. Do not dissolve group channels. Disable Group UART. Add another group channel. Enable and select DIO6 to DIO9, create a 4-channel group. Change pattern to Gray Counter. Frequency: 10 KHz. Name this group as Group GC. Also, individual DIO4 channel remains enabled. + 7. Monitor the 2 groups and DIO4 through logic analyzer. * Expected Result: On logic analyzer, the plot should resemble the plot seen in pattern generator. +**Result:** PASS/FAIL Test 4: Other Features -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +---------------------------------------------------------------------------------------------------- -UID: - - TST.M2K.PG.OTHER_FEATURES +**UID:** TST.M2K.PG.OTHER_FEATURES -Description: - - This test case verifies the functionality of the pattern generator in other features. +**Description:** This test case verifies the functionality of the pattern generator in other features. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - Use :ref:`M2k.Usb ` setup. + - OS: ANY -Steps: - * Step 1: Checking UI: Changing Channel Name - * Step 1.1: Open individual channel DIO. On its channel manager, modify its name to ‘CH 0’. +**Steps:** + 1. Checking UI: Changing Channel Name + 2. Open individual channel DIO. On its channel manager, modify its name to ‘CH 0’. * Expected Result: The name should change as shown in steps resources picture. - * Step 1.2: Enable DIO 1 and change its name to 'CH 1'. Create a group with 'CH 0' and 'CH 1'. + 3. Enable DIO 1 and change its name to 'CH 1'. Create a group with 'CH 0' and 'CH 1'. * Expected Result: The list of names under the group should also correspond to the names of the channels as should change as shown in steps resources picture. - * Step 2: Trace Height - * Step 2.1: Open channel ‘CH 0’. On its channel manager, change trace height to 50. + 4. Trace Height + 5. Open channel ‘CH 0’. On its channel manager, change trace height to 50. * Expected Result: The trace height should now be twice as shown in steps resources picture, compared to previous. - * Step 2.2: Change height again to 10. + 6. Change height again to 10. * Expected Result: The height should now be lower as shown in steps resources picture - * Step 3: Knobs - * Step 3.1: Checking frequency knob. Set the knob to large increment. No orange dot on the center. Change frequency value using the ± button. + 7. Knobs + 8. Checking frequency knob. Set the knob to large increment. No orange dot on the center. Change frequency value using the ± button. * Expected Result: The frequency value should change accordingly with a high increment/decrement from 5 KHz to 10 KHz. - * Step 3.2: Set the knob to ±1 unit interval. With orange dot on the center. Change frequency value using the ± button. + 9. Set the knob to ±1 unit interval. With orange dot on the center. Change frequency value using the ± button. * Expected Result: The frequency value should change accordingly with ±1 unit interval. - * Step 4: Checking the output: PP mode - * Step 4.1: Connect the DIO0 to oscilloscope ch1+, and oscilloscope ch1- to gnd. This is to monitor the output from the pattern generator. - * Step 4.2: Enable DIO0 in pattern generator. Set pattern to clock with 5 kHz frequency. Set output as PP. Run instrument and monitor on Oscilloscope. + 10. Checking the output: PP mode + 11. Connect the DIO0 to oscilloscope ch1+, and oscilloscope ch1- to gnd. This is to monitor the output from the pattern generator. + 12. Enable DIO0 in pattern generator. Set pattern to clock with 5 kHz frequency. Set output as PP. Run instrument and monitor on Oscilloscope. * Expected Result: The oscilloscope should show clock pulses from logic 0 to 1. It should look like in steps resources picture. - * Step 4.3: Try other patterns such as random pattern and monitor on oscilloscope. + 13. Try other patterns such as random pattern and monitor on oscilloscope. * Expected Result: The oscilloscope should show random pulses from logic 0 to 1. It should look like in steps resources picture. - * Step 4.4: Repeat steps 4.2 and 4.3 for all channels - * Step 5: OD mode - * Step 5.1: Change output to OD. Monitor output in oscilloscope. + 14. Repeat steps 10. and 13. for all channels + 15. OD mode + 16. Change output to OD. Monitor output in oscilloscope. * Expected Result: Oscilloscope should only show logic 0 since output is now in OD mode. - * Step 5.2: Do 5.1 to other channels. - * Step 5.3: To output two logic levels when operating in OD, a pull up resistor is needed. Connect the breadboard connection shown in steps resources. - * Step 5.4: Set power supply to 5V. Run power supply, pattern generator and monitor in oscilloscope. + 17. Do 5.1 to other channels. + 18. To output two logic levels when operating in OD, a pull up resistor is needed. Connect the breadboard connection shown in steps resources. + 19. Set power supply to 5V. Run power supply, pattern generator and monitor in oscilloscope. * Expected Result: The trace should show two logic levels, with a few mV offset. When power supply is turned off, the oscilloscope should show only logic 0. - * Step 5.5: Repeat step 5.3 and 5.4 for all channels. - * Step 6: Print - * Step 6.1: Click on Print button and save file as sample.pdf + 20. Repeat step 5.3 and 5.4 for all channels. + 21. Print + 22. Click on Print button and save file as sample.pdf * Expected Result: Upon saving, the prompt window should look like the steps resources picture. - * Step 6.2: Open the saved file. + 23. Open the saved file. * Expected Result: The file should show the waveform that you have saved. - * Step 7: See more info - * Step 7.1: Click the 'See more info' icon on the upper left of the pattern generator window. + 24. See more info + 25. Click the 'See more info' icon on the upper left of the pattern generator window. * Expected Result: It should lead to the wiki page of pattern generator. +**Result:** PASS/FAIL + diff --git a/docs/tests/plugins/m2k/signal_generator_tests.rst b/docs/tests/plugins/m2k/signal_generator_tests.rst index 0e2b495f6..fae56f718 100644 --- a/docs/tests/plugins/m2k/signal_generator_tests.rst +++ b/docs/tests/plugins/m2k/signal_generator_tests.rst @@ -1,298 +1,285 @@ +.. _m2k_signal_generator_tests: + M2K Signal Generator - Test Suite ======================================================= -Initial Setup -------------------------------------------------------- +.. note:: -In order to proceed through the test case, first of all delete the Scopy \*.ini file (saves previous settings made in Scopy tool). + User guide: :ref:`Scopy Overview `. -Test Case +Setup environment: ------------------------------------------------------- -Setup: - - M2K.* +.. _m2k-usb-signal-generator: + +**M2k.Usb:** + - Open Scopy. + - Connect an **ADALM2000** device to the system by USB. + - Add the device in device browser. Test 1: Channel 1 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: +**UID:** - TST.M2K.SG.CHANNEL_1_OPERATION -Description: +**Description:** - This test case verifies the operation of the channel 1 of the signal generator. -OS: - - any +**Preconditions:** + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Test the constant voltage generator - * Step 1.1: Turn on channel 1 and view the configuration window by clicking the on/off button and menu button respectively. Choose Constant from the configuration menu. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 2: Checking increment/decrement value; ±1V - * Step 2.1: Set the knob to ± 1V interval. No orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 2.2: Change the voltage value using the up and down arrow - * Expected Result: The voltage value should change accordingly with an increment or decrement of ±1V from -5V to 5V. The graphical representation should follow accordingly - * Step 3: Checking increment/decrement value; ±100mV - * Step 3.1: Set the knob to ± 100mV interval. With orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 3.2: Change the voltage value using the up and down arrow - * Expected Result: The voltage value should change accordingly with an increment or decrement of ±100mV from -5V to 5V. The graphical representation should follow accordingly - * Step 3.3: Connect AWG ch1 to scope ch1+ and scope ch1- to gnd - * Step 3.4: Set the voltage value of the signal generator to 4.5V and set the Oscilloscope’s Volts/div from 1V/div to 5V/div and set the trigger mode to auto. - * Expected Result: The voltage reading on the oscilloscope should be from 4.4V to 4.6V using the cursor or from the measured data - * Step 3.5: Set the voltage value of the signal generator to -4.5V and set the Oscilloscope’s Volts/div from 1V/div to 5V/div and set the trigger mode to auto. - * Expected Result: The voltage reading on the oscilloscope should be from -4.4V to -4.6V using the cursor or from the measured data - * Step 4: Testing different waveform types - * Step 4.1: Turn on channel 1 and view the configuration window by clicking the on/off button and menu button respectively. Choose Waveform from the configuration menu - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 5: Checking increment/decrement value of Amplitude and Frequency; Large increment - * Step 5.1: Set the knob to without the orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 5.2: Change the Amplitude or Frequency value using the up and down arrow - * Expected Result: The amplitude value should change accordingly with a high increment/decrement from 1uV to 10V. The frequency value should change accordingly with a high increment/decrement from 1mHz to 20MHz.The graphical representation should follow accordingly - * Step 6: Checking increment/decrement value of Amplitude and Frequency; ±1 unit on least significant digit - * Step 6.1: Set the knob to with the orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 6.2: Change the voltage or frequency value using the up and down arrow - * Expected Result: The Amplitude value should change accordingly with a ±1 unit on the least significant digit from 1uV to 10V. The frequency value should change accordingly with a ±1 unit on the least significant digit from 1mHz to 20MHz.The graphical representation should follow accordingly - * Step 7: Checking increment/decrement value of the Offset Voltage and Phase; ±1V and ±45° - * Step 7.1: Set the knob without the orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 7.2: Change the Offset voltage or Phase value using the up and down arrow - * Expected Result: The Offset voltage value should change accordingly with ±1 increment/decrement from -5V to 5V. The phase value should change accordingly with a ±45 increment/decrement from 0° to 360°.The graphical representation should follow accordingly - * Step 8: Checking increment/decrement value of Offset voltage and Phase; ±100mV and ±1° - * Step 8.1: Set the knob to with the orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 8.2: Change the Offset voltage or Phase value using the up and down arrow - * Expected Result: The Offset voltage value should change accordingly with ±.1 increment/decrement from -5V to 5V. The phase value should change accordingly with ±1 increment/decrement from 0° to 360°.The graphical representation should follow accordingly - * Step 8.3: Connect AWG ch1 to scope ch1+ and scope ch1- to gnd - * Step 9: Testing Sinewave Waveform - * Step 9.1: Set the signal generator’s waveform type: Sinewave, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 500mV/div, trigger mode: Auto and time base: 5ms. - * Expected Result: The measurement reading on Oscilloscope should be: Period: 5ms, Frequency: 200Hz, Peak-peak: 4.8V to 5.2V - * Step 9.2: Set the signal generator’s waveform type: Sinewave, Amplitude 10V, Frequency: 500kHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 2V/div, trigger mode: Auto and time base: 1us - * Expected Result: The measurement reading on Oscilloscope should be: Period: 2.000us, Frequency: 500 kHz, Peak-peak: 9.6V to 10.2V - * Step 9.3: Set the signal generator’s waveform type: Sinewave, Amplitude 10V, Frequency: 5MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 200ns - * Expected Result: The measurement reading on Oscilloscope should be: Period: 200ns, Frequency: 5MHz, Peak-peak: 8.9V to 9.2V - * Step 10: Testing Square Waveform - * Step 10.1: Set the signal generator’s waveform type: Square wave, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 5ms - * Expected Result: Use the Oscilloscope’s cursor to check the peak to peak value of the Square wave generated, do not include the inherent overshoot of the signal. The measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.5V - * Step 10.2: Set the signal generator’s waveform type: Square wave, Amplitude 10V, Frequency: 5MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 2V/div, trigger mode: Auto and time base: 100ns - * Expected Result: Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 9.8V to 10.2V and Min/Max: ±5V - * Step 10.3: Set the signal generator’s waveform type: Square wave, Amplitude 7V, Duty Cycle: 20%, Frequency: 100 kHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2us - * Expected Result: Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 6.8V to 7.2V and Min/Max: ±3.5V, +Duty Cycle: 20%, -Duty Cycl: 80% - * Step 10.4: Repeat step 10.3 with varying duty cycle from 1% to 99% - * Expected Result: Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 6.8V to 7.2V and Min/Max: ±5V and the varying ±Duty Cycle - * Step 11: Testing Triangle Waveform - * Step 11.1: Set the signal generator’s waveform type: Triangle, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms - * Expected Result: Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6V - * Step 11.2: Set the signal generator’s waveform type: Triangle, Amplitude 8V, Frequency: 2MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 100ns - * Expected Result: Oscilloscope’s measurement should be Period: 500.000ns, Frequency: 2MHz, peak to peak value: 7.8V to 8.2V and Min/Max: +/- 3.9V - * Step 12: Testing Rising Ramp Sawtooth Waveform - * Step 12.1: Set the signal generator’s waveform type: Rising Ramp Sawtooth, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms - * Expected Result: Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.7V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal - * Step 12.2: Set the signal generator’s waveform type: Rising Ramp Sawtooth, Amplitude 8V, Frequency: 1MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 1us - * Expected Result: Oscilloscope’s measurement should be Period: 1.000us, Frequency: 1MHz, peak to peak value: 7.8V to 8.2V and Min/Max: ±3.9V to ±4.1V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal - * Step 13: Testing Falling Ramp Sawtooth Waveform - * Step 13.1: Set the signal generator’s waveform type: Falling Ramp Sawtooth, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms - * Expected Result: Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6V - * Step 13.2: Set the signal generator’s waveform type: Falling Ramp Sawtooth, Amplitude 8V, Frequency: 1MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 1us - * Expected Result: Oscilloscope’s measurement should be Period: 1.000us, Frequency: 1MHz, peak to peak value: 7.8V to 8.2V and Min/Max: ±3.9V to ±4.1V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal - * Step 14: Testing Trapezoidal waveform - * Step 14.1: Set the signal generator’s waveform type: Trapezoidal, Amplitude: 5V, Rise Time: 1us, Fall Time: 1us, Hold High Time: 1us, Hold Low time Time: 1us. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 1us - * Expected Result: Oscilloscope’s measurement should be Period: 4.000us, Frequency: 250kHz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6. - * Step 14.2: Set the signal generator’s waveform type: Trapezoidal, Amplitude: 10V, Rise Time: 1us, Fall Time: 1us, Hold High Time: 1us, Hold Low time Time: 1us. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 1us - * Expected Result: Oscilloscope’s measurement should be Period: 4.000us, Frequency: 250kHz, peak to peak value: 9.6V to 10.4V and Min/Max: ±4.8V to ±5.2. - * Step 14.3: Set the signal generator’s waveform type: Trapezoidal, Amplitude: 10V, Rise Time: 200ns, Fall Time: 200ns, Hold High Time: 200ns, Hold Low time: 200ns. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 200ns - * Expected Result: Oscilloscope’s measurement should be Period: 800ns, Frequency: 1.250MHz, peak to peak value: 9.6V to 10.4V and Min/Max: ±4.8V to ±5.2. +**Steps:** + 1. Test the constant voltage generator + 2. Turn on channel 1 and view the configuration window by clicking the on/off button and menu button respectively. Choose Constant from the configuration menu. + 3. Checking increment/decrement value; ±1V + 4. Set the knob to ± 1V interval. No orange dot on the center. + 5. Change the voltage value using the up and down arrow + - **Expected Result:** The voltage value should change accordingly with an increment or decrement of ±1V from -5V to 5V. The graphical representation should follow accordingly + 6. Checking increment/decrement value; ±100mV + 7. Set the knob to ± 100mV interval. With orange dot on the center. + 8. Change the voltage value using the up and down arrow + - **Expected Result:** The voltage value should change accordingly with an increment or decrement of ±100mV from -5V to 5V. The graphical representation should follow accordingly + 9. Connect AWG ch1 to scope ch1+ and scope ch1- to gnd + 10. Set the voltage value of the signal generator to 4.5V and set the Oscilloscope’s Volts/div from 1V/div to 5V/div and set the trigger mode to auto. + - **Expected Result:** The voltage reading on the oscilloscope should be from 4.4V to 4.6V using the cursor or from the measured data + 11. Set the voltage value of the signal generator to -4.5V and set the Oscilloscope’s Volts/div from 1V/div to 5V/div and set the trigger mode to auto. + - **Expected Result:** The voltage reading on the oscilloscope should be from -4.4V to -4.6V using the cursor or from the measured data + 12. Testing different waveform types + 13. Turn on channel 1 and view the configuration window by clicking the on/off button and menu button respectively. Choose Waveform from the configuration menu + 14. Checking increment/decrement value of Amplitude and Frequency; Large increment + 15. Set the knob to without the orange dot on the center. + 16. Change the Amplitude or Frequency value using the up and down arrow + - **Expected Result:** The amplitude value should change accordingly with a high increment/decrement from 1uV to 10V. The frequency value should change accordingly with a high increment/decrement from 1mHz to 20MHz.The graphical representation should follow accordingly + 17. Checking increment/decrement value of Amplitude and Frequency; ±1 unit on least significant digit + 18. Set the knob to with the orange dot on the center. + 19. Change the voltage or frequency value using the up and down arrow + - **Expected Result:** The Amplitude value should change accordingly with a ±1 unit on the least significant digit from 1uV to 10V. The frequency value should change accordingly with a ±1 unit on the least significant digit from 1mHz to 20MHz.The graphical representation should follow accordingly + 20. Checking increment/decrement value of the Offset Voltage and Phase; ±1V and ±45° + 21. Set the knob without the orange dot on the center. + 22. Change the Offset voltage or Phase value using the up and down arrow + - **Expected Result:** The Offset voltage value should change accordingly with ±1 increment/decrement from -5V to 5V. The phase value should change accordingly with a ±45 increment/decrement from 0° to 360°.The graphical representation should follow accordingly + 23. Checking increment/decrement value of Offset voltage and Phase; ±100mV and ±1° + 24. Set the knob to with the orange dot on the center. + 25. Change the Offset voltage or Phase value using the up and down arrow + - **Expected Result:** The Offset voltage value should change accordingly with ±.1 increment/decrement from -5V to 5V. The phase value should change accordingly with ±1 increment/decrement from 0° to 360°.The graphical representation should follow accordingly + 26. Connect AWG ch1 to scope ch1+ and scope ch1- to gnd + 27. Testing Sinewave Waveform + 28. Set the signal generator’s waveform type: Sinewave, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 500mV/div, trigger mode: Auto and time base: 5ms. + - **Expected Result:** The measurement reading on Oscilloscope should be: Period: 5ms, Frequency: 200Hz, Peak-peak: 4.8V to 5.2V + 29. Set the signal generator’s waveform type: Sinewave, Amplitude 10V, Frequency: 500kHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 2V/div, trigger mode: Auto and time base: 1us + - **Expected Result:** The measurement reading on Oscilloscope should be: Period: 2.000us, Frequency: 500 kHz, Peak-peak: 9.6V to 10.2V + 30. Set the signal generator’s waveform type: Sinewave, Amplitude 10V, Frequency: 5MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 200ns + - **Expected Result:** The measurement reading on Oscilloscope should be: Period: 200ns, Frequency: 5MHz, Peak-peak: 8.9V to 9.2V + 31. Testing Square Waveform + 32. Set the signal generator’s waveform type: Square wave, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 5ms + - **Expected Result:** Use the Oscilloscope’s cursor to check the peak to peak value of the Square wave generated, do not include the inherent overshoot of the signal. The measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.5V + 33. Set the signal generator’s waveform type: Square wave, Amplitude 10V, Frequency: 5MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 2V/div, trigger mode: Auto and time base: 100ns + - **Expected Result:** Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 9.8V to 10.2V and Min/Max: ±5V + 34. Set the signal generator’s waveform type: Square wave, Amplitude 7V, Duty Cycle: 20%, Frequency: 100 kHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2us + - **Expected Result:** Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 6.8V to 7.2V and Min/Max: ±3.5V, +Duty Cycle: 20%, -Duty Cycl: 80% + 35. Repeat step 10.3 with varying duty cycle from 1% to 99% + - **Expected Result:** Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 6.8V to 7.2V and Min/Max: ±5V and the varying ±Duty Cycle + 36. Testing Triangle Waveform + 37. Set the signal generator’s waveform type: Triangle, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms + - **Expected Result:** Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6V + 38. Set the signal generator’s waveform type: Triangle, Amplitude 8V, Frequency: 2MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 100ns + - **Expected Result:** Oscilloscope’s measurement should be Period: 500.000ns, Frequency: 2MHz, peak to peak value: 7.8V to 8.2V and Min/Max: +/- 3.9V + 39. Testing Rising Ramp Sawtooth Waveform + 40. Set the signal generator’s waveform type: Rising Ramp Sawtooth, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms + - **Expected Result:** Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.7V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal + 41. Set the signal generator’s waveform type: Rising Ramp Sawtooth, Amplitude 8V, Frequency: 1MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 1us + - **Expected Result:** Oscilloscope’s measurement should be Period: 1.000us, Frequency: 1MHz, peak to peak value: 7.8V to 8.2V and Min/Max: ±3.9V to ±4.1V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal + 42. Testing Falling Ramp Sawtooth Waveform + 43. Set the signal generator’s waveform type: Falling Ramp Sawtooth, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms + - **Expected Result:** Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6V + 44. Set the signal generator’s waveform type: Falling Ramp Sawtooth, Amplitude 8V, Frequency: 1MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 1us + - **Expected Result:** Oscilloscope’s measurement should be Period: 1.000us, Frequency: 1MHz, peak to peak value: 7.8V to 8.2V and Min/Max: ±3.9V to ±4.1V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal + 45. Testing Trapezoidal waveform + 46. Set the signal generator’s waveform type: Trapezoidal, Amplitude: 5V, Rise Time: 1us, Fall Time: 1us, Hold High Time: 1us, Hold Low time Time: 1us. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 1us + - **Expected Result:** Oscilloscope’s measurement should be Period: 4.000us, Frequency: 250kHz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6. + 47. Set the signal generator’s waveform type: Trapezoidal, Amplitude: 10V, Rise Time: 1us, Fall Time: 1us, Hold High Time: 1us, Hold Low time Time: 1us. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 1us + - **Expected Result:** Oscilloscope’s measurement should be Period: 4.000us, Frequency: 250kHz, peak to peak value: 9.6V to 10.4V and Min/Max: ±4.8V to ±5.2. + 48. Set the signal generator’s waveform type: Trapezoidal, Amplitude: 10V, Rise Time: 200ns, Fall Time: 200ns, Hold High Time: 200ns, Hold Low time: 200ns. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 200ns + - **Expected Result:** Oscilloscope’s measurement should be Period: 800ns, Frequency: 1.250MHz, peak to peak value: 9.6V to 10.4V and Min/Max: ±4.8V to ±5.2. Test 2: Channel 2 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: +**UID:** - TST.M2K.SG.CHANNEL_2_OPERATION -Description: +**Description:** - This test case verifies the operation of the channel 2 of the signal generator. -OS: - - any +**Preconditions:** + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Test the constant voltage generator - * Step 1.1: Turn on channel 2 and view the configuration window by clicking the on/off button and menu button respectively. Choose Constant from the configuration menu. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 2: Checking increment/decrement value; ±1V - * Step 2.1: Set the knob to ± 1V interval. No orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 2.2: Change the voltage value using the up and down arrow - * Expected Result: The voltage value should change accordingly with an increment or decrement of ±1V from -5V to 5V. The graphical representation should follow accordingly - * Step 3: Checking increment/decrement value; ±100mV - * Step 3.1: Set the knob to ± 100mV interval. With orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 3.2: Change the voltage value using the up and down arrow - * Expected Result: The voltage value should change accordingly with an increment or decrement of ±100mV from -5V to 5V. The graphical representation should follow accordingly - * Step 3.3: Connect AWG ch2 to scope ch2+ and scope ch2- to gnd - * Step 3.4: Set the voltage value of the signal generator to 4.5V and set the Oscilloscope’s Volts/div from 1V/div to 5V/div and set the trigger mode to auto. - * Expected Result: The voltage reading on the oscilloscope should be from 4.4V to 4.6V using the cursor or from the measured data - * Step 3.5: Set the voltage value of the signal generator to -4.5V and set the Oscilloscope’s Volts/div from 1V/div to 5V/div and set the trigger mode to auto. - * Expected Result: The voltage reading on the oscilloscope should be from -4.4V to -4.6V using the cursor or from the measured data - * Step 4: Testing different waveform types - * Step 4.1: Turn on channel 2 and view the configuration window by clicking the on/off button and menu button respectively. Choose Waveform from the configuration menu - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 5: Checking increment/decrement value of Amplitude and Frequency; Large increment - * Step 5.1: Set the knob to without the orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 5.2: Change the Amplitude or Frequency value using the up and down arrow - * Expected Result: The amplitude value should change accordingly with a high increment/decrement from 1uV to 10V. The frequency value should change accordingly with a high increment/decrement from 1mHz to 20MHz.The graphical representation should follow accordingly - * Step 6: Checking increment/decrement value of Amplitude and Frequency; ±1 unit on least significant digit - * Step 6.1: Set the knob to with the orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 6.2: Change the voltage or frequency value using the up and down arrow - * Expected Result: The Amplitude value should change accordingly with a ±1 unit on the least significant digit from 1uV to 10V. The frequency value should change accordingly with a ±1 unit on the least significant digit from 1mHz to 20MHz.The graphical representation should follow accordingly - * Step 7: Checking increment/decrement value of the Offset Voltage and Phase; ±1V and ±45° - * Step 7.1: Set the knob without the orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 7.2: Change the Offset voltage or Phase value using the up and down arrow - * Expected Result: The Offset voltage value should change accordingly with ±1 increment/decrement from -5V to 5V. The phase value should change accordingly with a ±45 increment/decrement from 0° to 360°.The graphical representation should follow accordingly - * Step 8: Checking increment/decrement value of Offset voltage and Phase; ±100mV and ±1° - * Step 8.1: Set the knob to with the orange dot on the center. - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 8.2: Change the Offset voltage or Phase value using the up and down arrow - * Expected Result: The Offset voltage value should change accordingly with ±.1 increment/decrement from -5V to 5V. The phase value should change accordingly with ±1 increment/decrement from 0° to 360°.The graphical representation should follow accordingly - * Step 8.3: Connect AWG ch2 to scope ch2+ and scope ch2- to gnd - * Step 9: Testing Sinewave Waveform - * Step 9.1: Set the signal generator’s waveform type: Sinewave, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 500mV/div, trigger mode: Auto and time base: 5ms. - * Expected Result: The measurement reading on Oscilloscope should be: Period: 5ms, Frequency: 200Hz, Peak-peak: 4.8V to 5.2V - * Step 9.2: Set the signal generator’s waveform type: Sinewave, Amplitude 10V, Frequency: 500kHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 2V/div, trigger mode: Auto and time base: 1us - * Expected Result: The measurement reading on Oscilloscope should be: Period: 2.000us, Frequency: 500 kHz, Peak-peak: 9.6V to 10.2V - * Step 9.3: Set the signal generator’s waveform type: Sinewave, Amplitude 10V, Frequency: 5MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 200ns - * Expected Result: The measurement reading on Oscilloscope should be: Period: 200ns, Frequency: 5MHz, Peak-peak: 8.9V to 9.2V - * Step 10: Testing Square Waveform - * Step 10.1: Set the signal generator’s waveform type: Square wave, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 5ms - * Expected Result: Use the Oscilloscope’s cursor to check the peak to peak value of the Square wave generated, do not include the inherent overshoot of the signal. The measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.5V - * Step 10.2: Set the signal generator’s waveform type: Square wave, Amplitude 10V, Frequency: 5MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 2V/div, trigger mode: Auto and time base: 100ns - * Expected Result: Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 9.8V to 10.2V and Min/Max: ±5V - * Step 10.3: Set the signal generator’s waveform type: Square wave, Amplitude 7V, Duty Cycle: 20%, Frequency: 100 kHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2us - * Expected Result: Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 6.8V to 7.2V and Min/Max: ±3.5V, +Duty Cycle: 20%, -Duty Cycl: 80% - * Step 10.4: Repeat step 10.3 with varying duty cycle from 1% to 99% - * Expected Result: Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 6.8V to 7.2V and Min/Max: ±5V and the varying ±Duty Cycle - * Step 11: Testing Triangle Waveform - * Step 11.1: Set the signal generator’s waveform type: Triangle, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms - * Expected Result: Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6V - * Step 11.2: Set the signal generator’s waveform type: Triangle, Amplitude 8V, Frequency: 2MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 100ns - * Expected Result: Oscilloscope’s measurement should be Period: 500.000ns, Frequency: 2MHz, peak to peak value: 7.8V to 8.2V and Min/Max: +/- 3.9V - * Step 12: Testing Rising Ramp Sawtooth Waveform - * Step 12.1: Set the signal generator’s waveform type: Rising Ramp Sawtooth, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms - * Expected Result: Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.7V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal - * Step 12.2: Set the signal generator’s waveform type: Rising Ramp Sawtooth, Amplitude 8V, Frequency: 1MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 1us - * Expected Result: Oscilloscope’s measurement should be Period: 1.000us, Frequency: 1MHz, peak to peak value: 7.8V to 8.2V and Min/Max: ±3.9V to ±4.1V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal - * Step 13: Testing Falling Ramp Sawtooth Waveform - * Step 13.1: Set the signal generator’s waveform type: Falling Ramp Sawtooth, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms - * Expected Result: Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6V - * Step 13.2: Set the signal generator’s waveform type: Falling Ramp Sawtooth, Amplitude 8V, Frequency: 1MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 1us - * Expected Result: Oscilloscope’s measurement should be Period: 1.000us, Frequency: 1MHz, peak to peak value: 7.8V to 8.2V and Min/Max: ±3.9V to ±4.1V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal - * Step 14: Testing Trapezoidal waveform - * Step 14.1: Set the signal generator’s waveform type: Trapezoidal, Amplitude: 5V, Rise Time: 1us, Fall Time: 1us, Hold High Time: 1us, Hold Low time Time: 1us. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 1us - * Expected Result: Oscilloscope’s measurement should be Period: 4.000us, Frequency: 250kHz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6. - * Step 14.2: Set the signal generator’s waveform type: Trapezoidal, Amplitude: 10V, Rise Time: 1us, Fall Time: 1us, Hold High Time: 1us, Hold Low time Time: 1us. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 1us - * Expected Result: Oscilloscope’s measurement should be Period: 4.000us, Frequency: 250kHz, peak to peak value: 9.6V to 10.4V and Min/Max: ±4.8V to ±5.2. - * Step 14.3: Set the signal generator’s waveform type: Trapezoidal, Amplitude: 10V, Rise Time: 200ns, Fall Time: 200ns, Hold High Time: 200ns, Hold Low time: 200ns. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 200ns - * Expected Result: Oscilloscope’s measurement should be Period: 800ns, Frequency: 1.250MHz, peak to peak value: 9.6V to 10.4V and Min/Max: ±4.8V to ±5.2. +**Steps:** + 1. Test the constant voltage generator + 2. Turn on channel 2 and view the configuration window by clicking the on/off button and menu button respectively. Choose Constant from the configuration menu. + 3. Checking increment/decrement value; ±1V + 4. Set the knob to ± 1V interval. No orange dot on the center. + 5. Change the voltage value using the up and down arrow + - **Expected Result:** The voltage value should change accordingly with an increment or decrement of ±1V from -5V to 5V. The graphical representation should follow accordingly + 6. Checking increment/decrement value; ±100mV + 7. Set the knob to ± 100mV interval. With orange dot on the center. + 8. Change the voltage value using the up and down arrow + - **Expected Result:** The voltage value should change accordingly with an increment or decrement of ±100mV from -5V to 5V. The graphical representation should follow accordingly + 9. Connect AWG ch2 to scope ch2+ and scope ch2- to gnd + 10. Set the voltage value of the signal generator to 4.5V and set the Oscilloscope’s Volts/div from 1V/div to 5V/div and set the trigger mode to auto. + - **Expected Result:** The voltage reading on the oscilloscope should be from 4.4V to 4.6V using the cursor or from the measured data + 11. Set the voltage value of the signal generator to -4.5V and set the Oscilloscope’s Volts/div from 1V/div to 5V/div and set the trigger mode to auto. + - **Expected Result:** The voltage reading on the oscilloscope should be from -4.4V to -4.6V using the cursor or from the measured data + 12. Testing different waveform types + 13. Turn on channel 2 and view the configuration window by clicking the on/off button and menu button respectively. Choose Waveform from the configuration menu + 14. Checking increment/decrement value of Amplitude and Frequency; Large increment + 15. Set the knob to without the orange dot on the center. + 16. Change the Amplitude or Frequency value using the up and down arrow + - **Expected Result:** The amplitude value should change accordingly with a high increment/decrement from 1uV to 10V. The frequency value should change accordingly with a high increment/decrement from 1mHz to 20MHz.The graphical representation should follow accordingly + 17. Checking increment/decrement value of Amplitude and Frequency; ±1 unit on least significant digit + 18. Set the knob to with the orange dot on the center. + 19. Change the voltage or frequency value using the up and down arrow + - **Expected Result:** The Amplitude value should change accordingly with a ±1 unit on the least significant digit from 1uV to 10V. The frequency value should change accordingly with a ±1 unit on the least significant digit from 1mHz to 20MHz.The graphical representation should follow accordingly + 20. Checking increment/decrement value of the Offset Voltage and Phase; ±1V and ±45° + 21. Set the knob without the orange dot on the center. + 22. Change the Offset voltage or Phase value using the up and down arrow + - **Expected Result:** The Offset voltage value should change accordingly with ±1 increment/decrement from -5V to 5V. The phase value should change accordingly with a ±45 increment/decrement from 0° to 360°.The graphical representation should follow accordingly + 23. Checking increment/decrement value of Offset voltage and Phase; ±100mV and ±1° + 24. Set the knob to with the orange dot on the center. + 25. Change the Offset voltage or Phase value using the up and down arrow + - **Expected Result:** The Offset voltage value should change accordingly with ±.1 increment/decrement from -5V to 5V. The phase value should change accordingly with ±1 increment/decrement from 0° to 360°.The graphical representation should follow accordingly + 26. Connect AWG ch2 to scope ch2+ and scope ch2- to gnd + 27. Testing Sinewave Waveform + 28. Set the signal generator’s waveform type: Sinewave, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 500mV/div, trigger mode: Auto and time base: 5ms. + - **Expected Result:** The measurement reading on Oscilloscope should be: Period: 5ms, Frequency: 200Hz, Peak-peak: 4.8V to 5.2V + 29. Set the signal generator’s waveform type: Sinewave, Amplitude 10V, Frequency: 500kHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 2V/div, trigger mode: Auto and time base: 1us + - **Expected Result:** The measurement reading on Oscilloscope should be: Period: 2.000us, Frequency: 500 kHz, Peak-peak: 9.6V to 10.2V + 30. Set the signal generator’s waveform type: Sinewave, Amplitude 10V, Frequency: 5MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 200ns + - **Expected Result:** The measurement reading on Oscilloscope should be: Period: 200ns, Frequency: 5MHz, Peak-peak: 8.9V to 9.2V + 31. Testing Square Waveform + 32. Set the signal generator’s waveform type: Square wave, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 5ms + - **Expected Result:** Use the Oscilloscope’s cursor to check the peak to peak value of the Square wave generated, do not include the inherent overshoot of the signal. The measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.5V + 33. Set the signal generator’s waveform type: Square wave, Amplitude 10V, Frequency: 5MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 2V/div, trigger mode: Auto and time base: 100ns + - **Expected Result:** Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 9.8V to 10.2V and Min/Max: ±5V + 34. Set the signal generator’s waveform type: Square wave, Amplitude 7V, Duty Cycle: 20%, Frequency: 100 kHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2us + - **Expected Result:** Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 6.8V to 7.2V and Min/Max: ±3.5V, +Duty Cycle: 20%, -Duty Cycl: 80% + 35. Repeat step 10.3 with varying duty cycle from 1% to 99% + - **Expected Result:** Oscilloscope’s measurement should be Period: 200ns, Frequency: 5MHz, peak to peak value: 6.8V to 7.2V and Min/Max: ±5V and the varying ±Duty Cycle + 36. Testing Triangle Waveform + 37. Set the signal generator’s waveform type: Triangle, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms + - **Expected Result:** Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6V + 38. Set the signal generator’s waveform type: Triangle, Amplitude 8V, Frequency: 2MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 100ns + - **Expected Result:** Oscilloscope’s measurement should be Period: 500.000ns, Frequency: 2MHz, peak to peak value: 7.8V to 8.2V and Min/Max: +/- 3.9V + 39. Testing Rising Ramp Sawtooth Waveform + 40. Set the signal generator’s waveform type: Rising Ramp Sawtooth, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms + - **Expected Result:** Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.7V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal + 41. Set the signal generator’s waveform type: Rising Ramp Sawtooth, Amplitude 8V, Frequency: 1MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 1us + - **Expected Result:** Oscilloscope’s measurement should be Period: 1.000us, Frequency: 1MHz, peak to peak value: 7.8V to 8.2V and Min/Max: ±3.9V to ±4.1V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal + 42. Testing Falling Ramp Sawtooth Waveform + 43. Set the signal generator’s waveform type: Falling Ramp Sawtooth, Amplitude 5V, Frequency: 200Hz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 2ms + - **Expected Result:** Oscilloscope’s measurement should be Period: 5.000ms, Frequency: 200Hz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6V + 44. Set the signal generator’s waveform type: Falling Ramp Sawtooth, Amplitude 8V, Frequency: 1MHz, offset: 0V and Phase: 0 degrees. Set the Oscilloscope’s Volts/div: 1V/div, trigger mode: Auto and time base: 1us + - **Expected Result:** Oscilloscope’s measurement should be Period: 1.000us, Frequency: 1MHz, peak to peak value: 7.8V to 8.2V and Min/Max: ±3.9V to ±4.1V. Use the Oscilloscope’s cursor to disregard the overshoot of the signal + 45. Testing Trapezoidal waveform + 46. Set the signal generator’s waveform type: Trapezoidal, Amplitude: 5V, Rise Time: 1us, Fall Time: 1us, Hold High Time: 1us, Hold Low time Time: 1us. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 1us + - **Expected Result:** Oscilloscope’s measurement should be Period: 4.000us, Frequency: 250kHz, peak to peak value: 4.8V to 5.2V and Min/Max: ±2.4V to ±2.6. + 47. Set the signal generator’s waveform type: Trapezoidal, Amplitude: 10V, Rise Time: 1us, Fall Time: 1us, Hold High Time: 1us, Hold Low time Time: 1us. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 1us + - **Expected Result:** Oscilloscope’s measurement should be Period: 4.000us, Frequency: 250kHz, peak to peak value: 9.6V to 10.4V and Min/Max: ±4.8V to ±5.2. + 48. Set the signal generator’s waveform type: Trapezoidal, Amplitude: 10V, Rise Time: 200ns, Fall Time: 200ns, Hold High Time: 200ns, Hold Low time: 200ns. Set the Oscilloscope’s Volt/div: 2V, Trigger Mode: Auto and Time Base: 200ns + - **Expected Result:** Oscilloscope’s measurement should be Period: 800ns, Frequency: 1.250MHz, peak to peak value: 9.6V to 10.4V and Min/Max: ±4.8V to ±5.2. Test 3: Channel 1 and Channel 2 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: +**UID:** - TST.M2K.SG.CHANNEL_1_AND_CHANNEL_2_OPERATION -Description: +**Description:** - This test case verifies the operation of the channel 1 and channel 2 of the signal generator. -OS: - - any +**Preconditions:** + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Test constant voltage generator for both channels simultaneously - * Step 1.1: Turn on channels 1 and 2 and view the configuration window by clicking the on/off button then the menu button. Choose Constant from the configuration menu for both channels - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 1.2: Connect AWG ch1 to scope ch1+ and scope ch1- to gnd. Connect AWG ch2 to scope ch2+ and scope ch2- to gnd - * Step 1.3: Set signal generator’s channel 1 to 4.5V and channel 2 to -4.0V - * Expected Result: Open voltmeter instrument in DC mode. Channel 1 should have a voltage of 4.4V to 4.6V and channel 2 should have a voltage of -4.1V to -3.9V - * Step 1.4: Set signal generator’s channel 1 to -4.5V and channel 2 to 4.0V - * Step 2: Test different waveforms for both channels simultaneously - * Step 2.1: Turn on channels 1 and 2 and view the configuration window by clicking the on/off button then the menu button. Choose waveform from the configuration menu for both channels - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 2.2: Connect AWG ch1 to scope ch1+ and scope ch1- to gnd. Connect AWG ch2 to scope ch2+ and scope ch2- to gnd - * Step 3: Test phase configuration - * Step 3.1: Set signal generator channels 1 and 2 to either Sine or Triangle waveform type, they should be the same. For channel 1 set Amplitude: 5V, Frequency: 5kHz, offset: 0V and phase: 0°. Set signal generator’s channel 2 to Amplitude: 5V, Frequency: 5kHz, offset: 0V and phase: 180°. Set Oscilloscope’s both channel to Time Base: 200us, Volts/Div: 1V - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 3.2: Run Oscilloscope, add channel with an input function: f(t) = sin(t1) + sin(t0). - * Expected Result: The new plot’s value should be very close to 0V ranging around -0.2V to 0.2V - * Step 3.3: Set signal generator channels 1 and 2 to either Sine or Triangle waveform type, they should be the same. For channel 1 set Amplitude: 5V, Frequency: 5kHz, offset: 0V and phase: 0°. Set signal generator’s channel 2 to Amplitude: 5V, Frequency: 5kHz, offset: 0V and phase: 360°. Set Oscilloscope’s both channel to Time Base: 200us, Volts/Div: 1V - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 3.4: Run Oscilloscope, add channel with an input function: f(t) = sin(t1) - sin(t0). - * Expected Result: The new plot’s value should be very close to 0V ranging around -0.2V to 0.2V +**Steps:** + 1. Test constant voltage generator for both channels simultaneously + 2. Turn on channels 1 and 2 and view the configuration window by clicking the on/off button then the menu button. Choose Constant from the configuration menu for both channels + 3. Connect AWG ch1 to scope ch1+ and scope ch1- to gnd. Connect AWG ch2 to scope ch2+ and scope ch2- to gnd + 4. Set signal generator’s channel 1 to 4.5V and channel 2 to -4.0V + - **Expected Result:** Open voltmeter instrument in DC mode. Channel 1 should have a voltage of 4.4V to 4.6V and channel 2 should have a voltage of -4.1V to -3.9V + 5. Set signal generator’s channel 1 to -4.5V and channel 2 to 4.0V + 6. Test different waveforms for both channels simultaneously + 7. Turn on channels 1 and 2 and view the configuration window by clicking the on/off button then the menu button. Choose waveform from the configuration menu for both channels + 8. Connect AWG ch1 to scope ch1+ and scope ch1- to gnd. Connect AWG ch2 to scope ch2+ and scope ch2- to gnd + 9. Test phase configuration + 10. Set signal generator channels 1 and 2 to either Sine or Triangle waveform type, they should be the same. For channel 1 set Amplitude: 5V, Frequency: 5kHz, offset: 0V and phase: 0°. Set signal generator’s channel 2 to Amplitude: 5V, Frequency: 5kHz, offset: 0V and phase: 180°. Set Oscilloscope’s both channel to Time Base: 200us, Volts/Div: 1V + 11. Run Oscilloscope, add channel with an input function: f(t) = sin(t1) + sin(t0). + - **Expected Result:** The new plot’s value should be very close to 0V ranging around -0.2V to 0.2V + 12. Set signal generator channels 1 and 2 to either Sine or Triangle waveform type, they should be the same. For channel 1 set Amplitude: 5V, Frequency: 5kHz, offset: 0V and phase: 0°. Set signal generator’s channel 2 to Amplitude: 5V, Frequency: 5kHz, offset: 0V and phase: 360°. Set Oscilloscope’s both channel to Time Base: 200us, Volts/Div: 1V + 13. Run Oscilloscope, add channel with an input function: f(t) = sin(t1) - sin(t0). + - **Expected Result:** The new plot’s value should be very close to 0V ranging around -0.2V to 0.2V Test 4: Additional Features ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: +**UID:** - TST.M2K.SG.ADDITIONAL_FEATURES -Description: +**Description:** - This test case verifies the additional features of the signal generator. -OS: - - any +**Preconditions:** + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Test Noise - * Step 1.1: Turn on Signal Generator’s channel 1 and set the following parameter, Waveform Type: Square Wave, Amplitude: 3V, Offset: 1.5V, Frequency: 1kHz, Phase: 0degrees and Duty Cycle: 50% - * Expected Result: The interface should look like in the “Step Resources” picture (left side). - * Step 1.2: Connect AWG ch1 to scope ch1+ and scope ch1- to gnd - * Expected Result: Check in the Oscilloscope if the Square Wave signal generated is from 0V to 3V. - * Step 1.3: Choose Uniform Noise Type in the dropdown menu and set it to 500mV - * Expected Result: The interface should look like in the “Step Resources” picture (left side) - * Step 1.4: Set the Oscilloscope’s setting to Time Base: 100us, Volts/Div: 500mV/Div; Using the cursors measure the noise generated in the square waveform - * Expected Result: The measured voltage should be close to 500mV. Check the step resource picture for reference. - * Step 1.5: Repeat steps 1.3 and 1.4 using different Noise Amplitude [1V, 1.5V, 2V and 2.5V] - * Expected Result: The measured voltage should be close to the desired noise voltage. - * Step 2: Test Buffer - * Step 2.1: Download buffer test files (https://wiki.analog.com/_media/university/tools/m2k/scopy/test-cases/signal_generator_buffer_test.zip). Open Signal Generator Instrument and click the Buffer Tab - * Expected Result: Refer to the Step Resource Image for reference - * Step 2.2: Connect AWG ch1 to scope ch1+ and scope ch1- to gnd - * Step 3: Test .csv file - * Step 3.1: Load the .csv file from the downloaded .zip file - * Expected Result: The signal generated should be a stair step signal. - * Step 4: Test .mat file - * Step 4.1: Load the .mat file from the downloaded .zip file. Set the frequency to 20kHz, and the time base of Oscilloscope to 10ms. - * Expected Result: The signal generated should be a sine wave signal. - * Step 5: Test Math - * Step 5.1: Open Signal Generator Instrument and click the Math tab - * Expected Result: Refer to the Step Resource image for reference. - * Step 5.2: Connect AWG ch1 to scope ch1+ and scope ch1- to gnd - * Step 6: Generate Sine waves - * Step 6.1: In the Signal Generator Math Function tab, set frequency to 100Hz, and type in the function box 5*sin(t) and click apply. In the Oscilloscope instrument set Volts/div: 1V/div, Trigger: Auto, Time base: 2ms - * Expected Result: The generated sine wave signal should have the following parameters, peak to peak: 9.6Vpp to 10.4Vpp, frequency: 100Hz, and period: 10ms. Refer to the Step resource image for reference - * Step 6.2: In the Signal Generator Math Function tab, set frequency to 1kHz, and type in the function box 4*sin(10*t) and click apply. In the Oscilloscope instrument set Volts/div: 1V/div, Trigger: Auto, Time base: 20us - * Expected Result: The generated sine wave signal should have the following parameters, peak to peak: 7.6Vpp to 8.4Vpp, frequency: 10kHz, and period: 100us. Refer to the Step resource image for reference - * Step 6.3: In the Signal Generator Math Function tab, set frequency to 100kHz, and type in the function box 3*sin(50*t) and click apply. In the Oscilloscope instrument set Volts/div: 1V/div, Trigger: Auto, Time base: 100ns - * Expected Result: The generated sine wave signal should have the following parameters, peak to peak: 5.6Vpp to 6.4Vpp, frequency: 5MHz, and period: 200ns. Refer to the Step resource image for reference - * Step 7: Generate Square waves - * Step 7.1: In the Signal Generator Math Function tab, set frequency to 500kHz, and type in the function box 4*sin(t) + 4*sin(3*t)/3 + 4*sin(5*t)/5 + 4*sin(7*t)/7 + 4*sin(9*t)/9 + 4*sin(11*t)/11 (you can copy and paste the text to Scopy) and click apply. In the Oscilloscope instrument set Volts/div: 1V/div, Trigger: Auto, Time base: 500ns - * Expected Result: The generated square wave signal should have the following parameters, peak to peak: 7Vpp to 7.4Vpp, frequency: 500kHz, and period: 2us. Refer to the Step resource image for reference - * Step 8: Waveform Phase – Seconds - * Step 8.1: Open Waveform tab. Set frequency to 500Hz. Set Phase to 90 degrees. Then change phase unit to seconds. - * Expected Result: The value of Phase should automatically change to 500us that is 90 degrees in seconds for a frequency of 500Hz. - * Step 8.2: Increase and decrease the value of phase. - * Expected Result: The display should follow accordingly. - * Step 8.3: Increase phase value to 1.5 ms. Then change again the unit to degrees. - * Expected Result: The value should now be 270 degrees. - * Step 8.4: Change frequency to 1 MHz. Then set phase to 1us. This corresponds to a full period of a 1MHz frequency. - * Expected Result: The interface should look like in steps resources picture. - * Step 8.5: Change phase unit to degrees. - * Expected Result: The value should be 360 degrees. +**Steps:** + 1. Test Noise + 2. Turn on Signal Generator’s channel 1 and set the following parameter, Waveform Type: Square Wave, Amplitude: 3V, Offset: 1.5V, Frequency: 1kHz, Phase: 0degrees and Duty Cycle: 50% + 3. Connect AWG ch1 to scope ch1+ and scope ch1- to gnd + - **Expected Result:** Check in the Oscilloscope if the Square Wave signal generated is from 0V to 3V. + 4. Choose Uniform Noise Type in the dropdown menu and set it to 500mV + 5. Set the Oscilloscope’s setting to Time Base: 100us, Volts/Div: 500mV/Div; Using the cursors measure the noise generated in the square waveform + - **Expected Result:** The measured voltage should be close to 500mV. Check the step resource picture for reference. + 6. Repeat steps 1.3 and 1.4 using different Noise Amplitude [1V, 1.5V, 2V and 2.5V] + - **Expected Result:** The measured voltage should be close to the desired noise voltage. + 7. Test Buffer + 8. Download buffer test files (https://wiki.analog.com/_media/university/tools/m2k/scopy/test-cases/signal_generator_buffer_test.zip). Open Signal Generator Instrument and click the Buffer Tab + - **Expected Result:** Refer to the Step Resource Image for reference + 9. Connect AWG ch1 to scope ch1+ and scope ch1- to gnd + 10. Test .csv file + 11. Load the .csv file from the downloaded .zip file + - **Expected Result:** The signal generated should be a stair step signal. + 12. Test .mat file + 13. Load the .mat file from the downloaded .zip file. Set the frequency to 20kHz, and the time base of Oscilloscope to 10ms. + - **Expected Result:** The signal generated should be a sine wave signal. + 14. Test Math + 15. Open Signal Generator Instrument and click the Math tab + - **Expected Result:** Refer to the Step Resource image for reference. + 16. Connect AWG ch1 to scope ch1+ and scope ch1- to gnd + 17. Generate Sine waves + 18. In the Signal Generator Math Function tab, set frequency to 100Hz, and type in the function box 5*sin(t) and click apply. In the Oscilloscope instrument set Volts/div: 1V/div, Trigger: Auto, Time base: 2ms + - **Expected Result:** The generated sine wave signal should have the following parameters, peak to peak: 9.6Vpp to 10.4Vpp, frequency: 100Hz, and period: 10ms. Refer to the Step resource image for reference + 19. In the Signal Generator Math Function tab, set frequency to 1kHz, and type in the function box 4*sin(10*t) and click apply. In the Oscilloscope instrument set Volts/div: 1V/div, Trigger: Auto, Time base: 20us + - **Expected Result:** The generated sine wave signal should have the following parameters, peak to peak: 7.6Vpp to 8.4Vpp, frequency: 10kHz, and period: 100us. Refer to the Step resource image for reference + 20. In the Signal Generator Math Function tab, set frequency to 100kHz, and type in the function box 3*sin(50*t) and click apply. In the Oscilloscope instrument set Volts/div: 1V/div, Trigger: Auto, Time base: 100ns + - **Expected Result:** The generated sine wave signal should have the following parameters, peak to peak: 5.6Vpp to 6.4Vpp, frequency: 5MHz, and period: 200ns. Refer to the Step resource image for reference + 21. Generate Square waves + 22. In the Signal Generator Math Function tab, set frequency to 500kHz, and type in the function box 4*sin(t) + 4*sin(3*t)/3 + 4*sin(5*t)/5 + 4*sin(7*t)/7 + 4*sin(9*t)/9 + 4*sin(11*t)/11 (you can copy and paste the text to Scopy) and click apply. In the Oscilloscope instrument set Volts/div: 1V/div, Trigger: Auto, Time base: 500ns + - **Expected Result:** The generated square wave signal should have the following parameters, peak to peak: 7Vpp to 7.4Vpp, frequency: 500kHz, and period: 2us. Refer to the Step resource image for reference + 23. Waveform Phase – Seconds + 24. Open Waveform tab. Set frequency to 500Hz. Set Phase to 90 degrees. Then change phase unit to seconds. + - **Expected Result:** The value of Phase should automatically change to 500us that is 90 degrees in seconds for a frequency of 500Hz. + 25. Increase and decrease the value of phase. + - **Expected Result:** The display should follow accordingly. + 26. Increase phase value to 1.5 ms. Then change again the unit to degrees. + - **Expected Result:** The value should now be 270 degrees. + 27. Change frequency to 1 MHz. Then set phase to 1us. This corresponds to a full period of a 1MHz frequency. + - **Expected Result:** The interface should look like in steps resources picture. + 28. Change phase unit to degrees. + - **Expected Result:** The value should be 360 degrees. diff --git a/docs/tests/plugins/m2k/spectrum_analyzer_tests.rst b/docs/tests/plugins/m2k/spectrum_analyzer_tests.rst index 1bc980d50..4dec471f8 100644 --- a/docs/tests/plugins/m2k/spectrum_analyzer_tests.rst +++ b/docs/tests/plugins/m2k/spectrum_analyzer_tests.rst @@ -1,281 +1,281 @@ +.. _m2k_spectrum_analyzer_tests: + M2K Spectrum Analyzer - Test Suite ==================================================================================================== -Initial Setup ----------------------------------------------------------------------------------------------------- -In order to proceed through the test case, first of all delete the Scopy \*.ini file (saves previous settings made in Scopy tool). +.. note:: -Test Case + User guide: :ref: `Scopy Overview `. + +Setup environment: ---------------------------------------------------------------------------------------------------- -Setup: - - M2K.* +.. _m2k-usb-spectrum-analyzer: + +**M2k.Usb:** + - Open Scopy. + - Connect an **ADALM2000** device to the system by USB. + - Add the device in device browser. Test 1: Channel 1 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.M2K.SA.CHANNEL_1_OPERATION +**UID:** TST.M2K.SA.CHANNEL_1_OPERATION -Description: - - This test case verifies the functionality of the Spectrum Analyzer plugin on channel 1. +**Description:** This test case verifies the functionality of the Spectrum Analyzer plugin on channel 1. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Test Channel 1’s frequency accuracy - * Step 1.1: On channel 1’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. - * Expected Results: The interface should look like in the “Step Resources” picture. - * Step 1.2: Connect Scope ch1+ to W+ and Scope ch1- to GND - * Step 2: Test at 500Hz - * Step 2.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1kHz, set the Resolution BW to 244.14mHZ. On signal Generator, Set Amplitude: 10V, Frequency: 500Hz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 2.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 500Hz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 500Hz. The markers should also detect this as the peak amplitude. - * Step 3: Test at 1kHz - * Step 3.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 2kHz, set the Resolution BW to 976.56mHZ. On signal Generator, Set Amplitude: 10V, Frequency: 1kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 3.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 1kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 1kHz. The markers should also detect this as the peak amplitude. - * Step 4: Test at 7.5kHz - * Step 4.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 5 kHz and Stop frequency at 10kHz, set the Resolution BW to 4.88Hz. On signal Generator, Set Amplitude: 10V, Frequency: 7.5kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 4.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 7.5kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 7.5kHz. The markers should also detect this as the peak amplitude. - * Step 5: Test at 100kHz - * Step 5.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 200kHz, set the Resolution BW to 12.21Hz. On signal Generator, Set Amplitude: 10V, Frequency: 100kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 5.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 100 kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 100kHz. The markers should also detect this as the peak amplitude. - * Step 6: Test at 250 kHz - * Step 6.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 500 kHz, set the Resolution BW to 30.52 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 250 kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 6.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 250 kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 250kHz. The markers should also detect this as the peak amplitude. - * Step 7: Test at 500 kHz - * Step 7.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1 MHz, set the Resolution BW to 61.04 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 500 kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 7.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 500 kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 500kHz. The markers should also detect this as the peak amplitude. - * Step 8: Test at 800 kHz - * Step 8.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1.6 MHz, set the Resolution BW to 98.44 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 800 kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 8.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 800 kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 800 kHz. The markers should also detect this as the peak amplitude. - * Step 9: Test at 1 MHz - * Step 9.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 2 MHz, set the Resolution BW to 122.07 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 1 MHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 9.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 1 MHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 1 MHz. The markers should also detect this as the peak amplitude. - * Step 10: Test at 5 MHz - * Step 10.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 10 MHz, set the Resolution BW to 610.35 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 5 MHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 10.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 5 MHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 5 MHz. The markers should also detect this as the peak amplitude. - * Step 11: Test at 10 MHz - * Step 11.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 20 MHz, set the Resolution BW to 1.53 kHz. On signal Generator, Set Amplitude: 10V, Frequency: 10 MHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 11.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 10 MHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 10 MHz. The markers should also detect this as the peak amplitude. - * Step 12: Test at 20 MHz - * Step 12.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 50 MHz, set the Resolution BW to 3.05 kHz. On signal Generator, Set Amplitude: 10V, Frequency: 20 MHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 12.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 20 MHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 20 MHz. The markers should also detect this as the peak amplitude. +**Steps:** + 1. Test Channel 1’s frequency accuracy + 2. On channel 1’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. + 3. Connect Scope ch1+ to W+ and Scope ch1- to GND + 4. Test at 500Hz + 5. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1kHz, set the Resolution BW to 244.14mHZ. On signal Generator, Set Amplitude: 10V, Frequency: 500Hz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 6. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 500Hz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 500Hz. The markers should also detect this as the peak amplitude. + 7. Test at 1kHz + 8. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 2kHz, set the Resolution BW to 976.56mHZ. On signal Generator, Set Amplitude: 10V, Frequency: 1kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 9. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 1kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 1kHz. The markers should also detect this as the peak amplitude. + 10. Test at 7.5kHz + 11. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 5 kHz and Stop frequency at 10kHz, set the Resolution BW to 4.88Hz. On signal Generator, Set Amplitude: 10V, Frequency: 7.5kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 12. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 7.5kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 7.5kHz. The markers should also detect this as the peak amplitude. + 13. Test at 100kHz + 14. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 200kHz, set the Resolution BW to 12.21Hz. On signal Generator, Set Amplitude: 10V, Frequency: 100kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 15. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 100 kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 100kHz. The markers should also detect this as the peak amplitude. + 16. Test at 250 kHz + 17. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 500 kHz, set the Resolution BW to 30.52 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 250 kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 18. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 250 kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 250kHz. The markers should also detect this as the peak amplitude. + 19. Test at 500 kHz + 20. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1 MHz, set the Resolution BW to 61.04 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 500 kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 21. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 500 kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 500kHz. The markers should also detect this as the peak amplitude. + 22. Test at 800 kHz + 23. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1.6 MHz, set the Resolution BW to 98.44 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 800 kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 24. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 800 kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 800 kHz. The markers should also detect this as the peak amplitude. + 25. Test at 1 MHz + 26. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 2 MHz, set the Resolution BW to 122.07 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 1 MHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 27. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 1 MHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 1 MHz. The markers should also detect this as the peak amplitude. + 28. Test at 5 MHz + 29. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 10 MHz, set the Resolution BW to 610.35 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 5 MHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 30. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 5 MHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 5 MHz. The markers should also detect this as the peak amplitude. + 31. Test at 10 MHz + 32. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 20 MHz, set the Resolution BW to 1.53 kHz. On signal Generator, Set Amplitude: 10V, Frequency: 10 MHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 33. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 10 MHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 10 MHz. The markers should also detect this as the peak amplitude. + 34. Test at 20 MHz + 35. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 50 MHz, set the Resolution BW to 3.05 kHz. On signal Generator, Set Amplitude: 10V, Frequency: 20 MHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 36. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 20 MHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 20 MHz. The markers should also detect this as the peak amplitude. Test 2: Channel 2 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.M2K.SA.CHANNEL_2_OPERATION +**UID:** TST.M2K.SA.CHANNEL_2_OPERATION -Description: - - This test case verifies the functionality of the Spectrum Analyzer plugin on channel 2. +**Description:** This test case verifies the functionality of the Spectrum Analyzer plugin on channel 2. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Test Channel 2’s frequency accuracy - * Step 1.1: On Channel 2’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. - * Expected Results: The interface should look like in the “Step Resources” picture. - * Step 1.2: Connect Scope ch2+ to W2+ and Scope ch2- to GND - * Step 2: Test at 500Hz - * Step 2.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1kHz, set the Resolution BW to 244.14mHZ. On signal Generator, Set Amplitude: 10V, Frequency: 500Hz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 2.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 500Hz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 500Hz. The markers should also detect this as the peak amplitude. - * Step 3: Test at 1kHz - * Step 3.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 2kHz, set the Resolution BW to 976.56mHZ. On signal Generator, Set Amplitude: 10V, Frequency: 1kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 3.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 1kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 1kHz. The markers should also detect this as the peak amplitude. - * Step 4: Test at 7.5kHz - * Step 4.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 5 kHz and Stop frequency at 10kHz, set the Resolution BW to 4.88Hz. On signal Generator, Set Amplitude: 10V, Frequency: 7.5kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 4.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 7.5kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 7.5kHz. The markers should also detect this as the peak amplitude. - * Step 5: Test at 100kHz - * Step 5.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 200kHz, set the Resolution BW to 12.21Hz. On signal Generator, Set Amplitude: 10V, Frequency: 100kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 5.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 100 kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 100kHz. The markers should also detect this as the peak amplitude. - * Step 6: Test at 250 kHz - * Step 6.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 500 kHz, set the Resolution BW to 30.52 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 250 kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 6.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 250 kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 250kHz. The markers should also detect this as the peak amplitude. - * Step 7: Test at 500 kHz - * Step 7.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1 MHz, set the Resolution BW to 61.04 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 500 kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 7.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 500 kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 500kHz. The markers should also detect this as the peak amplitude. - * Step 8: Test at 800 kHz - * Step 8.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1.6 MHz, set the Resolution BW to 98.44 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 800 kHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 8.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 800 kHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 800 kHz. The markers should also detect this as the peak amplitude. - * Step 9: Test at 1 MHz - * Step 9.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 2 MHz, set the Resolution BW to 122.07 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 1 MHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 9.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 1 MHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 1 MHz. The markers should also detect this as the peak amplitude. - * Step 10: Test at 5 MHz - * Step 10.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 10 MHz, set the Resolution BW to 610.35 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 5 MHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 10.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 5 MHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 5 MHz. The markers should also detect this as the peak amplitude. - * Step 11: Test at 10 MHz - * Step 11.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 20 MHz, set the Resolution BW to 1.53 kHz. On signal Generator, Set Amplitude: 10V, Frequency: 10 MHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 11.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 10 MHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 10 MHz. The markers should also detect this as the peak amplitude. - * Step 12: Test at 20 MHz - * Step 12.1: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 50 MHz, set the Resolution BW to 3.05 kHz. On signal Generator, Set Amplitude: 10V, Frequency: 20 MHz, Offset: 0V and Phase: 0 degrees - * Expected Results: The interface should look like in the “Step Resources” picture. After setting the start and stop frequency, the center frequency and Span should follow. - * Step 12.2: Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 20 MHz Frequency position, or click the peak button for a shortcut. - * Expected Results: The fundamental frequency should be on 20 MHz. The markers should also detect this as the peak amplitude. +**Steps:** + 1. Test Channel 2’s frequency accuracy + 2. On Channel 2’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. + 3. Connect Scope ch2+ to W2+ and Scope ch2- to GND + 4. Test at 500Hz + 5. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1kHz, set the Resolution BW to 244.14mHZ. On signal Generator, Set Amplitude: 10V, Frequency: 500Hz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 6. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 500Hz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 500Hz. The markers should also detect this as the peak amplitude. + 7. Test at 1kHz + 8. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 2kHz, set the Resolution BW to 976.56mHZ. On signal Generator, Set Amplitude: 10V, Frequency: 1kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 9. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 1kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 1kHz. The markers should also detect this as the peak amplitude. + 10. Test at 7.5kHz + 11. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 5 kHz and Stop frequency at 10kHz, set the Resolution BW to 4.88Hz. On signal Generator, Set Amplitude: 10V, Frequency: 7.5kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 12. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 7.5kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 7.5kHz. The markers should also detect this as the peak amplitude. + 13. Test at 100kHz + 14. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 200kHz, set the Resolution BW to 12.21Hz. On signal Generator, Set Amplitude: 10V, Frequency: 100kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 15. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 100 kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 100kHz. The markers should also detect this as the peak amplitude. + 16. Test at 250 kHz + 17. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 500 kHz, set the Resolution BW to 30.52 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 250 kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 18. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 250 kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 250kHz. The markers should also detect this as the peak amplitude. + 19. Test at 500 kHz + 20. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1 MHz, set the Resolution BW to 61.04 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 500 kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 21. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 500 kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 500kHz. The markers should also detect this as the peak amplitude. + 22. Test at 800 kHz + 23. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1.6 MHz, set the Resolution BW to 98.44 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 800 kHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 24. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 800 kHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 800 kHz. The markers should also detect this as the peak amplitude. + 25. Test at 1 MHz + 26. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 2 MHz, set the Resolution BW to 122.07 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 1 MHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 27. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 1 MHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 1 MHz. The markers should also detect this as the peak amplitude. + 28. Test at 5 MHz + 29. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 10 MHz, set the Resolution BW to 610.35 Hz. On signal Generator, Set Amplitude: 10V, Frequency: 5 MHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 30. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 5 MHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 5 MHz. The markers should also detect this as the peak amplitude. + 31. Test at 10 MHz + 32. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 20 MHz, set the Resolution BW to 1.53 kHz. On signal Generator, Set Amplitude: 10V, Frequency: 10 MHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 33. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 10 MHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 10 MHz. The markers should also detect this as the peak amplitude. + 34. Test at 20 MHz + 35. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 50 MHz, set the Resolution BW to 3.05 kHz. On signal Generator, Set Amplitude: 10V, Frequency: 20 MHz, Offset: 0V and Phase: 0 degrees + - **Expected Result:** After setting the start and stop frequency, the center frequency and Span should follow. + 36. Run the Signal Generator and Spectrum Analyzer. On the markers menu, Enable Marker 1and set it manually at 20 MHz Frequency position, or click the peak button for a shortcut. + - **Expected Result:** The fundamental frequency should be on 20 MHz. The markers should also detect this as the peak amplitude. Test 3: Channel 1 and 2 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.M2K.SA.CHANNEL_1_AND_2_OPERATION +**UID:** TST.M2K.SA.CHANNEL_1_AND_2_OPERATION -Description: - - This test case verifies the functionality of the Spectrum Analyzer plugin on channel 1 and 2. +**Description:** This test case verifies the functionality of the Spectrum Analyzer plugin on channel 1 and 2. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Testing the marker function for channel 1 and 2 - * Step 1.1: On channel 1 and 2’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. - * Expected Results: The interface should look like in the “Step Resources” picture. - * Step 1.2: Connect Scope ch1+ to W1 and Scope ch1- to GND. Connect Scope ch2+ to W2 and Scope ch2- to GND - * Step 1.3: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1MHz, set the Resolution BW to 61.04Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 250 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 750 kHz, Offset: 0V and Phase: 0 degrees - * Step 1.4: Open the marker setting and select channel 1. Enable marker 1,2,3,4 or 5. - * Expected Results: The marker is enabled when the number box is filled with color. The initial position of the marker is on the center frequency of the window. - * Step 1.5: Click the peak button. - * Expected Results: The marker highlighted should detect the fundamental frequency of the channel 1’s signal which is on 250kHz. - * Step 1.6: Click the “→ peak” button. - * Expected Results: The marker highlighted shouldn’t detect the fundamental frequency of the channel 2’s signal which is on 750kHz. - * Step 1.7: Click the “Dn Ampl” button. - * Expected Results: The marker should detect the next lower amplitude signal compared from the previous point within the channel 1’s spectrum. - * Step 1.8: Click the “Up Ampl” button. - * Expected Results: The marker should detect the next higher amplitude signal compared from the previous point within the channel 1’s spectrum. - * Step 1.9: Open the marker setting and select channel 2. Enable marker 1,2,3,4 or 5. - * Expected Results: The marker is enabled when the number box is filled with color. The initial position of the marker is on the center frequency of the window. - * Step 1.10: Click the peak button. - * Expected Results: The marker highlighted should detect the fundamental frequency of the channel 2’s signal which is on 750kHz. - * Step 1.11: Click the “← peak” button. - * Expected Results: The marker highlighted shouldn’t detect the fundamental frequency of the channel 1’s signal which is on 250kHz. - * Step 1.12: Click the “Dn Ampl” button. - * Expected Results: The marker should detect the next lower amplitude signal compared from the previous point within the channel 2’s spectrum. - * Step 1.13: Click the “Up Ampl” button. - * Expected Results: The marker should detect the next higher amplitude signal compared from the previous point within the channel 2’s spectrum. - * Step 2: Testing channel 1 and 2 simultaneously - * Step 2.1: On channel 1 and 2’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. - * Expected Results: The interface should look like in the “Step Resources” picture. - * Step 2.2: Connect Scope ch1+ to W1 and Scope ch1- to GND. Connect Scope ch2+ to W2 and Scope ch2- to GND - * Step 2.3: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 500 Hz, set the Resolution BW to 488.28 mHz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 100 Hz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 300 Hz, Offset: 0V and Phase: 0 degrees - * Step 2.4: Run the Signal Generator and Spectrum Analyzer. Set Marker Table on to monitor marker values. - * Expected Results: The fundamental frequency should be on 100 Hz for channel 1 and 300 Hz for channel 2. The signals shouldn’t be interfering the other. - * Step 2.5: Repeat Testing the marker function for channel 1 and 2 from steps 1.4 to 1.13. - * Expected Results: The behavior should be the same. - * Step 2.6: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1k Hz, set the Resolution BW to 976.56 mHz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 200 Hz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 600 Hz, Offset: 0V and Phase: 0 degrees - * Step 2.7: Run the Signal Generator and Spectrum Analyzer. - * Expected Results: The fundamental frequency should be on 200 Hz for channel 1 and 600 Hz for channel 2. The signals shouldn’t be interfering the other. - * Step 2.8: Repeat Testing the marker function for channel 1 and 2 from steps 1.4 to 1.13. - * Expected Results: The behavior should be the same. - * Step 2.9: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1k Hz, set the Resolution BW to 976.56 mHz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 300 Hz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 700 Hz, Offset: 0V and Phase: 0 degrees - * Step 2.10: Run the Signal Generator and Spectrum Analyzer. - * Expected Results: The fundamental frequency should be on 300 Hz for channel 1 and 700 Hz for channel 2. The signals shouldn’t be interfering the other. - * Step 2.11: Repeat Testing the marker function for channel 1 and 2 from steps 1.4 to 1.13. - * Expected Results: The behavior should be the same. - * Step 2.12: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 10 kHz, set the Resolution BW to 4.88 Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 4 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 7k Hz, Offset: 0V and Phase: 0 degrees - * Step 2.13: Run the Signal Generator and Spectrum Analyzer. - * Expected Results: The fundamental frequency should be on 4 kHz for channel 1 and 7 kHz for channel 2. The signals shouldn’t be interfering the other. - * Step 2.14: Repeat Testing the marker function for channel 1 and 2 from steps 1.4 to 1.13. - * Expected Results: The behavior should be the same. - * Step 2.15: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 20 kHz, set the Resolution BW to 9.77 Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 10 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 15 kHz, Offset: 0V and Phase: 0 degrees - * Step 2.16: Run the Signal Generator and Spectrum Analyzer. - * Expected Results: The fundamental frequency should be on 10 kHz for channel 1 and 15 kHz for channel 2. The signals shouldn’t be interfering the other. - * Step 2.17: Repeat Testing the marker function for channel 1 and 2 from steps 1.4 to 1.13. - * Expected Results: The behavior should be the same. - * Step 2.18: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 50 kHz, set the Resolution BW to 24.41 Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 25 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 35 kHz, Offset: 0V and Phase: 0 degrees - * Step 2.19: Run the Signal Generator and Spectrum Analyzer. - * Expected Results: The fundamental frequency should be on 25 kHz for channel 1 and 35 kHz for channel 2. The signals shouldn’t be interfering the other. - * Step 2.20: Repeat Testing the marker function for channel 1 and 2 from steps 1.4 to 1.13. - * Expected Results: The behavior should be the same. - * Step 2.21: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 100 kHz, set the Resolution BW to 61.04 Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 50 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 70 kHz, Offset: 0V and Phase: 0 degrees - * Step 2.22: Run the Signal Generator and Spectrum Analyzer. - * Expected Results: The fundamental frequency should be on 50 kHz for channel 1 and 70 kHz for channel 2. The signals shouldn’t be interfering the other. - * Step 2.23: Repeat Testing the marker function for channel 1 and 2 from steps 1.4 to 1.13. - * Expected Results: The behavior should be the same. +**Steps:** + 1. Testing the marker function for channel 1 and 2 + 2. On channel 1 and 2’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. + 3. Connect Scope ch1+ to W1 and Scope ch1- to GND. Connect Scope ch2+ to W2 and Scope ch2- to GND + 4. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1MHz, set the Resolution BW to 61.04Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 250 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 750 kHz, Offset: 0V and Phase: 0 degrees + 5. Open the marker setting and select channel 1. Enable marker 1,2,3,4 or 5. + - **Expected Result:** The marker is enabled when the number box is filled with color. The initial position of the marker is on the center frequency of the window. + 6. Click the peak button. + - **Expected Result:** The marker highlighted should detect the fundamental frequency of the channel 1’s signal which is on 250kHz. + 7. Click the “→ peak” button. + - **Expected Result:** The marker highlighted shouldn’t detect the fundamental frequency of the channel 2’s signal which is on 750kHz. + 8. Click the “Dn Ampl” button. + - **Expected Result:** The marker should detect the next lower amplitude signal compared from the previous point within the channel 1’s spectrum. + 9. Click the “Up Ampl” button. + - **Expected Result:** The marker should detect the next higher amplitude signal compared from the previous point within the channel 1’s spectrum. + 10. Open the marker setting and select channel 2. Enable marker 1,2,3,4 or 5. + - **Expected Result:** The marker is enabled when the number box is filled with color. The initial position of the marker is on the center frequency of the window. + 11. Click the peak button. + - **Expected Result:** The marker highlighted should detect the fundamental frequency of the channel 2’s signal which is on 750kHz. + 12. Click the “← peak” button. + - **Expected Result:** The marker highlighted shouldn’t detect the fundamental frequency of the channel 1’s signal which is on 250kHz. + 13. Click the “Dn Ampl” button. + - **Expected Result:** The marker should detect the next lower amplitude signal compared from the previous point within the channel 2’s spectrum. + 14. Click the “Up Ampl” button. + - **Expected Result:** The marker should detect the next higher amplitude signal compared from the previous point within the channel 2’s spectrum. + 15. Testing channel 1 and 2 simultaneously + 16. On channel 1 and 2’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. + 17. Connect Scope ch1+ to W1 and Scope ch1- to GND. Connect Scope ch2+ to W2 and Scope ch2- to GND + 18. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 500 Hz, set the Resolution BW to 488.28 mHz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 100 Hz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 300 Hz, Offset: 0V and Phase: 0 degrees + 19. Run the Signal Generator and Spectrum Analyzer. Set Marker Table on to monitor marker values. + - **Expected Result:** The fundamental frequency should be on 100 Hz for channel 1 and 300 Hz for channel 2. The signals shouldn’t be interfering the other. + 20. Repeat Testing the marker function for channel 1 and 2 from steps 5. to 14. + - **Expected Result:** The behavior should be the same. + 21. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1k Hz, set the Resolution BW to 976.56 mHz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 200 Hz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 600 Hz, Offset: 0V and Phase: 0 degrees + 22. Run the Signal Generator and Spectrum Analyzer. + - **Expected Result:** The fundamental frequency should be on 200 Hz for channel 1 and 600 Hz for channel 2. The signals shouldn’t be interfering the other. + 23. Repeat Testing the marker function for channel 1 and 2 from steps 5. to 14. + - **Expected Result:** The behavior should be the same. + 24. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1k Hz, set the Resolution BW to 976.56 mHz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 300 Hz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 700 Hz, Offset: 0V and Phase: 0 degrees + 25. Run the Signal Generator and Spectrum Analyzer. + - **Expected Result:** The fundamental frequency should be on 300 Hz for channel 1 and 700 Hz for channel 2. The signals shouldn’t be interfering the other. + 26. Repeat Testing the marker function for channel 1 and 2 from steps 5 to 14. + - **Expected Result:** The behavior should be the same. + 27. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 10 kHz, set the Resolution BW to 4.88 Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 4 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 7k Hz, Offset: 0V and Phase: 0 degrees + 28. Run the Signal Generator and Spectrum Analyzer. + - **Expected Result:** The fundamental frequency should be on 4 kHz for channel 1 and 7 kHz for channel 2. The signals shouldn’t be interfering the other. + 29. Repeat Testing the marker function for channel 1 and 2 from steps 5 to 14. + - **Expected Result:** The behavior should be the same. + 30. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 20 kHz, set the Resolution BW to 9.77 Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 10 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 15 kHz, Offset: 0V and Phase: 0 degrees + 31. Run the Signal Generator and Spectrum Analyzer. + - **Expected Result:** The fundamental frequency should be on 10 kHz for channel 1 and 15 kHz for channel 2. The signals shouldn’t be interfering the other. + 32. Repeat Testing the marker function for channel 1 and 2 from steps 5 to 14. + - **Expected Result:** The behavior should be the same. + 33. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 50 kHz, set the Resolution BW to 24.41 Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 25 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 35 kHz, Offset: 0V and Phase: 0 degrees + 34. Run the Signal Generator and Spectrum Analyzer. + - **Expected Result:** The fundamental frequency should be on 25 kHz for channel 1 and 35 kHz for channel 2. The signals shouldn’t be interfering the other. + 35. Repeat Testing the marker function for channel 1 and 2 from steps 5 to 14. + - **Expected Result:** The behavior should be the same. + 36. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 100 kHz, set the Resolution BW to 61.04 Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 50 kHz, Offset: 0V and Phase: 0 degrees. Amplitude: 10V, Frequency: 70 kHz, Offset: 0V and Phase: 0 degrees + 37. Run the Signal Generator and Spectrum Analyzer. + - **Expected Result:** The fundamental frequency should be on 50 kHz for channel 1 and 70 kHz for channel 2. The signals shouldn’t be interfering the other. + 38. Repeat Testing the marker function for channel 1 and 2 from steps 5 to 14. + - **Expected Result:** The behavior should be the same. Test 4: Additional Features ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.M2K.SA.ADDITIONAL_FEATURES +**UID:** TST.M2K.SA.ADDITIONAL_FEATURES -Description: - - This test case verifies the additional features of the Spectrum Analyzer plugin. +**Description:** This test case verifies the additional features of the Spectrum Analyzer plugin. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Testing channel 1’s trace detector type - * Step 1.1: On channel 1’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. - * Expected Results: The interface should look like in the “Step Resources” picture. - * Step 1.2: Connect Scope ch1+ to W1 and Scope ch1- to GND. Connect Scope ch2+ to W2 and Scope ch2- to GND - * Step 1.3: On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1MHz, set the Resolution BW to 61.04Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 500 kHz, Offset: 0V and Phase: 0 degrees - * Step 2: Test Peak hold Continuous - * Step 2.1: On channel 1’s setting, set the detector type to Peak hold continuous. Run Spectrum Analyzer and Signal Generator. - * Expected Results: The noise floor of the signal should move up to the peak of the noise floor. - * Step 2.2: On Signal Generator’s channel 1, change the frequency to 250 kHz. - * Expected Results: The signal should be able to capture the fundamental frequency at 250kHz while retaining the previous fundamental frequency from 500kHz signal - * Step 3: Test Min hold Continuous - * Step 3.1: Repeat the steps of testing detector types. On channel 1’s setting, set the detector type to Min hold continuous. Run Spectrum Analyzer and Signal Generator. - * Expected Results: The noise floor of the signal should move down to the minimum value of the noise floor while retaining the fundamental frequency at 500kHz. - * Step 3.2: On Signal Generator’s channel 1, change the frequency to 250 kHz. - * Expected Results: The fundamental frequencies shouldn’t be detected but the noise floor’s should still be moving to the minimum - * Step 4: Testing channel 2’s trace detector type - * Step 4.1: Repeat the steps in channel 1's trace detector using channel 2. - * Expected Results: The response should be the same - * Step 5: Testing the marker table - * Step 5.1: On channel 1’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. - * Expected Results: The interface should look like in the “Step Resources” picture. - * Step 5.2: Connect Scope ch1+ to W1 and Scope ch1- to GND. Connect Scope ch2+ to W2 and Scope ch2- to GND - * Step 5.3: Set Signal Generator’s channel 1 to the following parameter: Waveformtype: Square Wave, Amplitude: 5V, Frequency: 50kHz, Offset: 0V and Phase 0 degrees. For channel 2 set the following parameters: Waveform type: Triangle , Amplitude: 5V, Frequency: 100kHz, offset: 0V and Phase: 0 degrees - * Step 5.4: Set Spectrum Analyzer’s channel 1 and 2’s type to sample and Window to Flat top. For the Sweep setting set Start: 0Hz, Stop: 1MHz , Resolution BW: 61.04Hz. Run both Signal Generator and Spectrum Analyzer. - * Expected Results: The spectrum analyzer now displays the FFT signal of both signals with the fundamental frequency and harmonics. - * Step 5.5: On the marker menu, enable the marker table feature. - * Expected Results: The interface should look like the image in the step resource picture. - * Step 5.6: Enable 5 markers for the two channels and distribute each markers on the fundamental frequency or harmonic frequency of the signal by pressing “Up Ampl” or “Dn Ampl” - * Expected Results: For channel 1 the fundamental frequency is on 50kHz and the succeeding harmonics are at 150kHz, 250kHz, 350kHz and 450kHz. For channel 2, the fundamental frequency is on 100kHz and the succeeding harmonics is on 300kHz, 500kHz, 700kHz and 900kHz. See Step resource picture for reference. +**Steps:** + 1. Testing channel 1’s trace detector type + 2. On channel 1’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. + 3. Connect Scope ch1+ to W1 and Scope ch1- to GND. Connect Scope ch2+ to W2 and Scope ch2- to GND + 4. On Spectrum Analyzer’s Sweep setting, Set Start Frequency at 0Hz and Stop frequency at 1MHz, set the Resolution BW to 61.04Hz. On signal Generator, Set Channel 1’s Amplitude: 10V, Frequency: 500 kHz, Offset: 0V and Phase: 0 degrees + 5. Test Peak hold Continuous + 6. On channel 1’s setting, set the detector type to Peak hold continuous. Run Spectrum Analyzer and Signal Generator. + - **Expected Result:** The noise floor of the signal should move up to the peak of the noise floor. + 7. On Signal Generator’s channel 1, change the frequency to 250 kHz. + - **Expected Result:** The signal should be able to capture the fundamental frequency at 250kHz while retaining the previous fundamental frequency from 500kHz signal + 8. Test Min hold Continuous + 9. Repeat the steps of testing detector types. On channel 1’s setting, set the detector type to Min hold continuous. Run Spectrum Analyzer and Signal Generator. + - **Expected Result:** The noise floor of the signal should move down to the minimum value of the noise floor while retaining the fundamental frequency at 500kHz. + 10. On Signal Generator’s channel 1, change the frequency to 250 kHz. + - **Expected Result:** The fundamental frequencies shouldn’t be detected but the noise floor’s should still be moving to the minimum + 11. Testing channel 2’s trace detector type + 12. Repeat the steps in channel 1's trace detector using channel 2. + - **Expected Result:** The response should be the same + 13. Testing the marker table + 14. On channel 1’s setting, set Type to Sample, Window Function to Flat-top and Averaging to 1. + 15. Connect Scope ch1+ to W1 and Scope ch1- to GND. Connect Scope ch2+ to W2 and Scope ch2- to GND + 16. Set Signal Generator’s channel 1 to the following parameter: Waveformtype: Square Wave, Amplitude: 5V, Frequency: 50kHz, Offset: 0V and Phase 0 degrees. For channel 2 set the following parameters: Waveform type: Triangle , Amplitude: 5V, Frequency: 100kHz, offset: 0V and Phase: 0 degrees + 17. Set Spectrum Analyzer’s channel 1 and 2’s type to sample and Window to Flat top. For the Sweep setting set Start: 0Hz, Stop: 1MHz , Resolution BW: 61.04Hz. Run both Signal Generator and Spectrum Analyzer. + - **Expected Result:** The spectrum analyzer now displays the FFT signal of both signals with the fundamental frequency and harmonics. + 18. On the marker menu, enable the marker table feature. + - **Expected Result:** The interface should look like the image in the step resource picture. + 19. Enable 5 markers for the two channels and distribute each markers on the fundamental frequency or harmonic frequency of the signal by pressing “Up Ampl” or “Dn Ampl” + - **Expected Result:** For channel 1 the fundamental frequency is on 50kHz and the succeeding harmonics are at 150kHz, 250kHz, 350kHz and 450kHz. For channel 2, the fundamental frequency is on 100kHz and the succeeding harmonics is on 300kHz, 500kHz, 700kHz and 900kHz. See Step resource picture for reference. diff --git a/docs/tests/plugins/m2k/voltmeter_tests.rst b/docs/tests/plugins/m2k/voltmeter_tests.rst index 8f430e664..84351903b 100644 --- a/docs/tests/plugins/m2k/voltmeter_tests.rst +++ b/docs/tests/plugins/m2k/voltmeter_tests.rst @@ -1,260 +1,264 @@ +.. _m2k_voltmeter_tests: + M2K Voltmeter - Test Suite =============================================================================== -Initial Setup -------------------------------------------------------------------------------- -In order to proceed through the test case, first of all delete the Scopy \*.ini file (saves previous settings made in Scopy tool). +.. note:: -Test Case + User guide: :ref: `Scopy Overview `. + +Setup environment: ------------------------------------------------------------------------------- -Setup: - - M2K.* +.. _m2k-usb-voltmeter: + +**M2k.Usb:** + - Open Scopy. + - Connect an **ADALM2000** device to the system by USB. + - Add the device in device browser. Test 1: Channel 1 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.M2K.VOLTMETER.CHANNEL_1_OPERATION +**UID:** TST.M2K.VOLTMETER.CHANNEL_1_OPERATION -Description: - - This test case verifies the functionality of the M2K voltmeter channel 1 operation. +**Description:** This test case verifies the functionality of the M2K voltmeter channel 1 operation. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Checking the DC Mode of channel 1 - * Step 1.1: Set channel 1 in DC Mode - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in VDC mode. - * Step 1.2: Connect scope ch1+ to positive supply and ch1- to gnd - * Step 1.3: Set the positive power supply voltage level to 3.3V - * Expected Result: The voltage displayed in the voltmeter should be around 3.2V to 3.4V and the history graph should follow in 1s, 10s or 60s setting - * Step 1.4: Connect scope ch1+ to negative supply and ch1- to gnd - * Step 1.5: Set the negative power supply voltage level to -3.3V - * Expected Result: The voltage displayed in voltmeter should be around -3.2V to -3.4V and the history graph should follow in 1s, 10s or 60s setting - * Step 1.6: Connect scope ch1+ to positive power supply and scope ch1- to negative supply - * Step 1.7: Set the positive power supply voltage level to 5V and negative power supply to -5V - * Expected Result: The voltage displayed in the voltmeter should be around 9.9V to 10.1V and the history graph should follow - * Step 1.8: In step 2 replace scope ch1+ with scope ch1- and scope ch1- with scope ch1+ then repeat step 1.3 - * Expected Result: The voltage displayed in voltmeter should be around -3.2V to -3.3V and the history graph should follow in 1s, 10s or 60s setting - * Step 1.9: In step 4 replace scope ch1+ with scope ch1- and scope ch1- to scope ch1+ then repeat step 1.5 - * Step 1.10: In step 6 replace scope ch1+ with scope ch1- and scope ch1- with scope ch1+ then repeat step 1.7 - * Expected Result: The voltage displayed in voltmeter should be around -9.9V to -10.1V and the history graph should follow in 1s, 10s or 60s setting - * Step 2: Checking the AC Mode of channel 1 for low frequencies (20Hz to 800Hz) - * Step 2.1: Set channel 1 in AC Mode (20Hz to 800Hz) - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. - * Step 2.2: Connect scope ch1+ to AWG Ch1 and scope ch1- to gnd - * Step 2.3: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 20Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.4: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 5V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 1.66Vrms to 1.86Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.5: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 2.000V, Offset: 0V, Frequency: 20Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.6: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 5V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 2.4Vrms to 2.6Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.7: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 3.464V, Offset: 0V, Frequency: 20Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.8: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 7V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 1.9Vrms to 2.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3: Checking the AC Mode of channel 1 for high frequencies (800Hz to 40kHz) - * Step 3.1: Set channel 1 in AC Mode (800Hz to 40kHz) - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. - * Step 3.2: Connect scope ch1+ to AWG Ch1 and scope ch1- to gnd - * Step 3.3: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.4: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 5V, Offset: 0V, Frequency: 40kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 1.66Vrms to 1.86Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.5: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 2.000V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.6: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 5V, Offset: 0V, Frequency: 40kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 2.4Vrms to 2.6Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.7: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 3.464V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.8: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 7V, Offset: 0V, Frequency: 40kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 1.9Vrms to 2.1Vrms and the history graph should follow in 1s, 10s or 60s setting +**Steps:** + 1. Checking the DC Mode of channel 1 + 2. Set channel 1 in DC Mode + - **Expected Result:** The numerical value should indicate that it’s in VDC mode. + 3. Connect scope ch1+ to positive supply and ch1- to gnd + 4. Set the positive power supply voltage level to 3.3V + - **Expected Result:** The voltage displayed in the voltmeter should be around 3.2V to 3.4V and the history graph should follow in 1s, 10s or 60s setting + 5. Connect scope ch1+ to negative supply and ch1- to gnd + 6. Set the negative power supply voltage level to -3.3V + - **Expected Result:** The voltage displayed in voltmeter should be around -3.2V to -3.4V and the history graph should follow in 1s, 10s or 60s setting + 7. Connect scope ch1+ to positive power supply and scope ch1- to negative supply + 8. Set the positive power supply voltage level to 5V and negative power supply to -5V + - **Expected Result:** The voltage displayed in the voltmeter should be around 9.9V to 10.1V and the history graph should follow + 9. In step 2 replace scope ch1+ with scope ch1- and scope ch1- with scope ch1+ then repeat step 1.3 + - **Expected Result:** The voltage displayed in voltmeter should be around -3.2V to -3.3V and the history graph should follow in 1s, 10s or 60s setting + 10. In step 4 replace scope ch1+ with scope ch1- and scope ch1- to scope ch1+ then repeat step 1.5 + 11. In step 6 replace scope ch1+ with scope ch1- and scope ch1- with scope ch1+ then repeat step 1.7 + - **Expected Result:** The voltage displayed in voltmeter should be around -9.9V to -10.1V and the history graph should follow in 1s, 10s or 60s setting + 12. Checking the AC Mode of channel 1 for low frequencies (20Hz to 800Hz) + 13. Set channel 1 in AC Mode (20Hz to 800Hz) + - **Expected Result:** The numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. + 14. Connect scope ch1+ to AWG Ch1 and scope ch1- to gnd + 15. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 20Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 16. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 5V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 1.66Vrms to 1.86Vrms and the history graph should follow in 1s, 10s or 60s setting + 17. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 2.000V, Offset: 0V, Frequency: 20Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 18. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 5V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 2.4Vrms to 2.6Vrms and the history graph should follow in 1s, 10s or 60s setting + 19. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 3.464V, Offset: 0V, Frequency: 20Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 20. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 7V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 1.9Vrms to 2.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 21. Checking the AC Mode of channel 1 for high frequencies (800Hz to 40kHz) + 22. Set channel 1 in AC Mode (800Hz to 40kHz) + - **Expected Result:** The numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. + 23. Connect scope ch1+ to AWG Ch1 and scope ch1- to gnd + 24. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 25. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 5V, Offset: 0V, Frequency: 40kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 1.66Vrms to 1.86Vrms and the history graph should follow in 1s, 10s or 60s setting + 26. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 2.000V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 27. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 5V, Offset: 0V, Frequency: 40kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 2.4Vrms to 2.6Vrms and the history graph should follow in 1s, 10s or 60s setting + 28. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 3.464V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 29. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 7V, Offset: 0V, Frequency: 40kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 1.9Vrms to 2.1Vrms and the history graph should follow in 1s, 10s or 60s setting Test 2: Channel 2 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.M2K.VOLTMETER.CHANNEL_2_OPERATION +**UID:** TST.M2K.VOLTMETER.CHANNEL_2_OPERATION -Description: - - This test case verifies the functionality of the M2K voltmeter channel 2 operation. +**Description:** This test case verifies the functionality of the M2K voltmeter channel 2 operation. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Checking the DC Mode of channel 2 - * Step 1.1: Set channel 2 in DC Mode - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in VDC mode. - * Step 1.2: Connect scope ch2+ to positive supply and scope ch2- to gnd - * Step 1.3: Set the positive power supply voltage level to 3.3V - * Expected Result: The voltage displayed in the voltmeter should be around 3.2V to 3.4V and the history graph should follow in 1s, 10s or 60s setting - * Step 1.4: Connect scope ch2+ to negative supply and scope ch2- to gnd - * Step 1.5: Set the negative power supply voltage level to -3.3V - * Expected Result: The voltage displayed in voltmeter should be around -3.2V to -3.4V and the history graph should follow in 1s, 10s or 60s setting - * Step 1.6: Connect scope ch2+ to positive power supply and scope ch1- to negative supply - * Step 1.7: Set the positive power supply voltage level to 5V and negative power supply to -5V - * Expected Result: The voltage displayed in the voltmeter should be around 9.9V to 10.1V and the history graph should follow in 1s, 10s or 60s setting - * Step 1.8: In step 2 replace scope ch2+ with scope ch2- and and scope ch2- with scope ch2+ then repeat step 1.3 - * Expected Result: The voltage displayed in voltmeter should be around -3.2V to -3.3V and the history graph should follow in 1s, 10s or 60s setting - * Step 1.9: In step 4 replace scope ch2+ with scope ch2- and and scope ch2- with scope ch2+ then repeat step 1.5 - * Expected Result: The voltage displayed in voltmeter should be around 3.2V to 3.3V and the history graph should follow in 1s, 10s or 60s setting - * Step 1.10: In step 6 replace scope ch2+ with scope ch2- and and scope ch2- with scope ch2+ then repeat step 1.7 - * Expected Result: The voltage displayed in voltmeter should be around -9.9V to -10.1V and the history graph should follow in 1s, 10s or 60s setting - * Step 2: Checking the AC Mode of channel 2 for low frequencies (20Hz to 800Hz) - * Step 2.1: Set channel 1 in AC Mode (20Hz to 800Hz) - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. - * Step 2.2: Connect scope ch2+ to AWG ch1 and scope ch2- to gnd - * Step 2.3: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 20Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.4: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 5V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 1.66Vrms to 1.86Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.5: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 2.000V, Offset: 0V, Frequency: 20Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.6: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 5V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 2.4Vrms to 2.6Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.7: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 3.464V, Offset: 0V, Frequency: 20Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 2.8: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 7V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 1.9Vrms to 2.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3: Checking the AC Mode of channel 2 for high frequencies (800Hz to 40kHz) - * Step 3.1: Set channel 1 in AC Mode (800Hz to 40kHz) - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. - * Step 3.2: Connect scope ch2+ to AWG ch1 and scope ch2- to gnd - * Step 3.3: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.4: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 5V, Offset: 0V, Frequency: 40kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 1.66Vrms to 1.86Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.5: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 2.000V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.6: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 5V, Offset: 0V, Frequency: 40kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 2.4Vrms to 2.6Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.7: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 3.464V, Offset: 0V, Frequency: 800Hz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting - * Step 3.8: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 7V, Offset: 0V, Frequency: 40kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter should be around 1.9Vrms to 2.1Vrms and the history graph should follow in 1s, 10s or 60s setting +**Steps:** + 1. Checking the DC Mode of channel 2 + 2. Set channel 2 in DC Mode + - **Expected Result:** The numerical value should indicate that it’s in VDC mode. + 3. Connect scope ch2+ to positive supply and scope ch2- to gnd + 4. Set the positive power supply voltage level to 3.3V + - **Expected Result:** The voltage displayed in the voltmeter should be around 3.2V to 3.4V and the history graph should follow in 1s, 10s or 60s setting + 5. Connect scope ch2+ to negative supply and scope ch2- to gnd + 6. Set the negative power supply voltage level to -3.3V + - **Expected Result:** The voltage displayed in voltmeter should be around -3.2V to -3.4V and the history graph should follow in 1s, 10s or 60s setting + 7. Connect scope ch2+ to positive power supply and scope ch1- to negative supply + 8. Set the positive power supply voltage level to 5V and negative power supply to -5V + - **Expected Result:** The voltage displayed in the voltmeter should be around 9.9V to 10.1V and the history graph should follow in 1s, 10s or 60s setting + 9. In step 2 replace scope ch2+ with scope ch2- and and scope ch2- with scope ch2+ then repeat step 1.3 + - **Expected Result:** The voltage displayed in voltmeter should be around -3.2V to -3.3V and the history graph should follow in 1s, 10s or 60s setting + 10. In step 4 replace scope ch2+ with scope ch2- and and scope ch2- with scope ch2+ then repeat step 1.5 + - **Expected Result:** The voltage displayed in voltmeter should be around 3.2V to 3.3V and the history graph should follow in 1s, 10s or 60s setting + 11. In step 6 replace scope ch2+ with scope ch2- and and scope ch2- with scope ch2+ then repeat step 1.7 + - **Expected Result:** The voltage displayed in voltmeter should be around -9.9V to -10.1V and the history graph should follow in 1s, 10s or 60s setting + 12. Checking the AC Mode of channel 2 for low frequencies (20Hz to 800Hz) + 13. Set channel 1 in AC Mode (20Hz to 800Hz) + - **Expected Result:** The numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. + 14. Connect scope ch2+ to AWG ch1 and scope ch2- to gnd + 15. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 20Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 16. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 5V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 1.66Vrms to 1.86Vrms and the history graph should follow in 1s, 10s or 60s setting + 17. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 2.000V, Offset: 0V, Frequency: 20Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 18. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 5V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 2.4Vrms to 2.6Vrms and the history graph should follow in 1s, 10s or 60s setting + 19. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 3.464V, Offset: 0V, Frequency: 20Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 20. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 7V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 1.9Vrms to 2.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 21. Checking the AC Mode of channel 2 for high frequencies (800Hz to 40kHz) + 22. Set channel 1 in AC Mode (800Hz to 40kHz) + - **Expected Result:** The numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. + 23. Connect scope ch2+ to AWG ch1 and scope ch2- to gnd + 24. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 25. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 5V, Offset: 0V, Frequency: 40kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 1.66Vrms to 1.86Vrms and the history graph should follow in 1s, 10s or 60s setting + 26. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 2.000V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 27. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 5V, Offset: 0V, Frequency: 40kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 2.4Vrms to 2.6Vrms and the history graph should follow in 1s, 10s or 60s setting + 28. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 3.464V, Offset: 0V, Frequency: 800Hz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 0.9Vrms to 1.1Vrms and the history graph should follow in 1s, 10s or 60s setting + 29. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 7V, Offset: 0V, Frequency: 40kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter should be around 1.9Vrms to 2.1Vrms and the history graph should follow in 1s, 10s or 60s setting Test 3: Channel 1 and Channel 2 Operation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.M2K.VOLTMETER.CHANNEL_1_AND_CHANNEL_2_OPERATION +**UID:** TST.M2K.VOLTMETER.CHANNEL_1_AND_CHANNEL_2_OPERATION -Description: - - This test case verifies the functionality of the M2K voltmeter channel 1 and channel 2 operation. +**Description:** This test case verifies the functionality of the M2K voltmeter channel 1 and channel 2 operation. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Test both channels simultaneously in DC mode - * Step 1.1: Set channel 1 and 2 in DC Mode - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in VDC mode. - * Step 1.2: Connect scope ch1+ to positive supply and scope ch1- to gnd. Connect scope ch2+ to negative supply and scope ch2- to gnd - * Step 1.3: Set the positive power supply voltage level to 3.3V and negative power supply to -4.5V - * Expected Result: The voltages shouldn’t interfere with each other. Voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and for voltmeter’s channel 2 should be around -4.6V to -4.4V. The history graph should follow in 1s, 10s or 60s setting - * Step 1.4: Turn off the history graph of channel 1. Set the positive power supply voltage level to 3.3V and negative power supply to -4.5V - * Expected Result: Turning off the history graph through the function shown on the picture shouldn’t reset or affect the voltage reading in the numerical display. Voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and for voltmeter’s channel 2 should be around -4.6V to -4.4V. The history graph of channel 2 should follow in 1s, 10s or 60s setting - * Step 1.5: Turn off the history graph of channel 2. Set the positive power supply voltage level to 3.3V and negative power supply to -4.5V - * Expected Result: Turning off the history graph through the function shown on the picture shouldn’t reset or affect the voltage reading in the numerical display. Voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and for voltmeter’s channel 2 should be around -4.6V to -4.4V. The history graph of channel 1 should follow in 1s, 10s or 60s setting - * Step 1.6: Turn off the history graph of both channels. Set the positive power supply voltage level to 3.3V and negative power supply to -4.5V - * Expected Result: Turning off the history graph through the function shown on the picture shouldn’t reset or affect the voltage reading in the numerical display. Voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and for voltmeter’s channel 2 should be around -4.6V to -4.4V. - * Step 2: Test both channels simultaneously in AC mode - * Step 2.1: Set channel 1 in low frequency AC mode and channel 2 in high frequency AC Mode - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. - * Step 2.2: Connect scope ch1+ to AWG ch1 and scope ch1- to gnd. Connect scope ch2+ to AWG ch2 and scope ch2- to gnd - * Step 2.3: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 200Hz and Phase: 0. Set the Signal generator’s channel 2 configuration to the following setting Waveform Type: Square Wave, Amplitude: 3, Offset: 0V, Frequency: 1kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter’s channel 1 should be around 0.9Vrms to 1.1Vrms and the voltage display for voltmeter’s channel 2 should be around 1.4Vrms to 1.6Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting - * Step 2.4: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 6.928V, Offset: 0V, Frequency: 200 Hz and Phase: 0. Set the Signal generator’s channel 2 configuration to the following setting Waveform Type: Sinewave, Amplitude: 2.828, Offset: 0V, Frequency: 1kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter’s channel 1 should be around 1.9Vrms to 2.1Vrms and the voltage display for voltmeter’s channel 2 should be around 0.9Vrms to 1.0Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting - * Step 3: Test one channel in DC mode and other channel in AC mode simultaneously - * Step 3.1: Set channel 1 in DC Mode and channel 2 in AC Mode - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that channel 1 is in VDC mode and channel 2 is in AC mode, channel 2 should measure the Vrms. - * Step 3.2: Connect scope ch1+ to positive supply and scope ch1- to gnd. Connect scope ch2+ to AWG ch1 and scope ch2- to gnd - * Step 3.3: Set the positive power supply voltage level to 3.3V. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 10kHz and Phase: 0. - * Expected Result: The voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and the voltage display for voltmeter’s channel 2 should be around 0.9Vrms to 1.1Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting - * Step 3.4: Set the positive power supply voltage level to 5V. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 3, Offset: 0V, Frequency: 10kHz and Phase: 0. - * Expected Result: The voltage displayed in the voltmeter’s channel 1 should be around 4.9V to 5.1V and the voltage display for voltmeter’s channel 2 should be around 1.4Vrms to 1.6Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting - * Step 3.5: Set channel 1 in AC Mode and channel 2 in DC Mode - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that channel 1 is in AC mode and channel 2 is in DC mode, channel 1 should measure the Vrms. - * Step 3.6: In step 3.2 replace scope ch1+ and scope ch1- with scope ch2+ and ch2- respectively and replace ch2+ and ch2- with ch1+ and ch1- respectively and repeat step 3.3 - * Expected Result: The voltage displayed in the voltmeter’s channel 2 should be around 3.2V to 3.4V and the voltage display for voltmeter’s channel 1 should be around 0.9Vrms to 1.1Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting - * Step 3.7: In step 3.2 replace scope ch1+ and scope ch1- with scope ch2+ and ch2- respectively and replace ch2+ and ch2- with ch1+ and ch1- respectively and repeat step 3.4 - * Expected Result: The voltage displayed in the voltmeter’s channel 2 should be around 4.9V to 5.1V and the voltage display for voltmeter’s channel 1 should be around 1.4Vrms to 1.6Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting +**Steps:** + 1. Test both channels simultaneously in DC mode + 2. Set channel 1 and 2 in DC Mode + - **Expected Result:** The numerical value should indicate that it’s in VDC mode. + 3. Connect scope ch1+ to positive supply and scope ch1- to gnd. Connect scope ch2+ to negative supply and scope ch2- to gnd + 4. Set the positive power supply voltage level to 3.3V and negative power supply to -4.5V + - **Expected Result:** The voltages shouldn’t interfere with each other. Voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and for voltmeter’s channel 2 should be around -4.6V to -4.4V. The history graph should follow in 1s, 10s or 60s setting + 5. Turn off the history graph of channel 1. Set the positive power supply voltage level to 3.3V and negative power supply to -4.5V + - **Expected Result:** Turning off the history graph through the function shown on the picture shouldn’t reset or affect the voltage reading in the numerical display. Voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and for voltmeter’s channel 2 should be around -4.6V to -4.4V. The history graph of channel 2 should follow in 1s, 10s or 60s setting + 6. Turn off the history graph of channel 2. Set the positive power supply voltage level to 3.3V and negative power supply to -4.5V + - **Expected Result:** Turning off the history graph through the function shown on the picture shouldn’t reset or affect the voltage reading in the numerical display. Voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and for voltmeter’s channel 2 should be around -4.6V to -4.4V. The history graph of channel 1 should follow in 1s, 10s or 60s setting + 7. Turn off the history graph of both channels. Set the positive power supply voltage level to 3.3V and negative power supply to -4.5V + - **Expected Result:** Turning off the history graph through the function shown on the picture shouldn’t reset or affect the voltage reading in the numerical display. Voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and for voltmeter’s channel 2 should be around -4.6V to -4.4V. + 8. Test both channels simultaneously in AC mode + 9. Set channel 1 in low frequency AC mode and channel 2 in high frequency AC Mode + - **Expected Result:** The numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. + 10. Connect scope ch1+ to AWG ch1 and scope ch1- to gnd. Connect scope ch2+ to AWG ch2 and scope ch2- to gnd + 11. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 200Hz and Phase: 0. Set the Signal generator’s channel 2 configuration to the following setting Waveform Type: Square Wave, Amplitude: 3, Offset: 0V, Frequency: 1kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter’s channel 1 should be around 0.9Vrms to 1.1Vrms and the voltage display for voltmeter’s channel 2 should be around 1.4Vrms to 1.6Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting + 12. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 6.928V, Offset: 0V, Frequency: 200 Hz and Phase: 0. Set the Signal generator’s channel 2 configuration to the following setting Waveform Type: Sinewave, Amplitude: 2.828, Offset: 0V, Frequency: 1kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter’s channel 1 should be around 1.9Vrms to 2.1Vrms and the voltage display for voltmeter’s channel 2 should be around 0.9Vrms to 1.0Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting + 13. Test one channel in DC mode and other channel in AC mode simultaneously + 14. Set channel 1 in DC Mode and channel 2 in AC Mode + - **Expected Result:** The numerical value should indicate that channel 1 is in VDC mode and channel 2 is in AC mode, channel 2 should measure the Vrms. + 15. Connect scope ch1+ to positive supply and scope ch1- to gnd. Connect scope ch2+ to AWG ch1 and scope ch2- to gnd + 16. Set the positive power supply voltage level to 3.3V. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 10kHz and Phase: 0. + - **Expected Result:** The voltage displayed in the voltmeter’s channel 1 should be around 3.2V to 3.4V and the voltage display for voltmeter’s channel 2 should be around 0.9Vrms to 1.1Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting + 17. Set the positive power supply voltage level to 5V. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Square Wave, Amplitude: 3, Offset: 0V, Frequency: 10kHz and Phase: 0. + - **Expected Result:** The voltage displayed in the voltmeter’s channel 1 should be around 4.9V to 5.1V and the voltage display for voltmeter’s channel 2 should be around 1.4Vrms to 1.6Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting + 18. Set channel 1 in AC Mode and channel 2 in DC Mode + - **Expected Result:** The numerical value should indicate that channel 1 is in AC mode and channel 2 is in DC mode, channel 1 should measure the Vrms. + 19. In step 3.2 replace scope ch1+ and scope ch1- with scope ch2+ and ch2- respectively and replace ch2+ and ch2- with ch1+ and ch1- respectively and repeat step 3.3 + - **Expected Result:** The voltage displayed in the voltmeter’s channel 2 should be around 3.2V to 3.4V and the voltage display for voltmeter’s channel 1 should be around 0.9Vrms to 1.1Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting + 20. In step 3.2 replace scope ch1+ and scope ch1- with scope ch2+ and ch2- respectively and replace ch2+ and ch2- with ch1+ and ch1- respectively and repeat step 3.4 + - **Expected Result:** The voltage displayed in the voltmeter’s channel 2 should be around 4.9V to 5.1V and the voltage display for voltmeter’s channel 1 should be around 1.4Vrms to 1.6Vrms. The history graph should follow the voltage reading in 1s, 10s or 60s setting Test 4: Additional Features ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -UID: - - TST.M2K.VOLTMETER.ADDITIONAL_FEATURES +**UID:** TST.M2K.VOLTMETER.ADDITIONAL_FEATURES -Description: - - This test case verifies the functionality of the M2K voltmeter additional features. +**Description:** This test case verifies the functionality of the M2K voltmeter additional features. -OS: - - any +**Preconditions:** + - Scopy is installed on the system. + - OS: ANY + - Use :ref:`M2k.Usb ` setup. -Steps: - * Step 1: Test Peak hold feature - * Step 1.1: Set channel 1 and 2 in DC Mode - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in VDC mode. - * Step 1.2: Connect scope ch1+ to positive supply and scope ch1- to gnd. Connect scope ch2+ to negative supply and scope ch2- to gnd - * Step 1.3: Turn on the Peak hold feature of the voltmeter - * Expected Result: The voltmeter window should now show the min and max indicator for both channels. See image for reference. - * Step 1.4: Set +power supply to 2.5V and –power supply to -3V then turn on the power supply first before the voltmeter - * Expected Result: The voltage displayed in channel 1’s max voltage should be around 2.4V to 2.6V and the min should still be 0V. The voltage displayed on channel 2’s min voltage should be around -3.1V to -2.9V and the max voltage should be 0V - * Step 1.5: Following step 4 Set +power supply to 5 V and –power supply to -5V - * Expected Result: The voltage displayed in channel 1’s max voltage should be around 4.9V to 5.1V and the min should still be 0V. The voltage displayed on channel 2’s min voltage should be around -5.1V to -4.9V and the max voltage should be 0V - * Step 1.6: Connect scope ch1+ to negative supply and scope ch1- to gnd. Connect scope ch2+ to positive supply and scope ch2- to gnd - * Step 1.7: Set +power supply to 2.5V and –power supply to -3V then turn on the power supply first before the voltmeter - * Expected Result: The voltage displayed in channel 2’s max voltage should be around 2.4V to 2.6V and the min should still be -5V. The voltage displayed on channel 1’s min voltage should be around -3.1V to -2.9V and the max voltage should be 5V - * Step 1.8: Following step 7 Set +power supply to 5 V and –power supply to -5V - * Expected Result: The voltage displayed in channel 2’s max voltage should be around 4.9V to 5.1V and the min should still be -5V. The voltage displayed on channel 1’s min voltage should be around -5.1V to -4.9V and the max voltage should be 5V - * Step 2: Test the reset instrument feature - * Step 2.1: Stop Voltmeter instrument then click the reset instrument button for the peak hold features - * Expected Result: The max and min reading for both channels should return to 0V. - * Step 3: Test Data logging feature - * Step 3.1: Set channel 1 in low frequency AC mode and channel 2 in high frequency AC Mode - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. - * Step 3.2: Connect scope ch1+ to AWG ch1 and scope ch1- to gnd. Connect scope ch2+ to AWG ch2 and scope ch2- to gnd - * Step 4: Testing Append mode - * Step 4.1: Turn on the Data logging feature and choose Append - * Expected Result: Refer to the image for reference - * Step 4.2: For the timer choose 5 seconds - * Expected Result: Refer to the image for reference - * Step 4.3: Open a .csv file where the data will be logged - * Expected Result: Refer to the image for reference - * Step 4.4: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 200Hz and Phase: 0. Set the Signal generator’s channel 2 configuration to the following setting Waveform Type: Square Wave, Amplitude: 3, Offset: 0V, Frequency: 1kHz and Phase: 0. Run both the Signal generator and voltmeter - * Expected Result: Wait for about 1 minute to record at least 6 readings. - * Step 4.5: Stop the voltmeter and open the .csv file using MS Excel. - * Expected Result: The voltmeter reading should be recorded on the .csv file with 5 second interval. - * Step 4.6: Change the timer for 20 seconds - * Expected Result: Refer to step 4's resource image for reference - * Step 4.7: Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 6.928V, Offset: 0V, Frequency: 200 Hz and Phase: 0. Set the Signal generator’s channel 2 configuration to the following setting Waveform Type: Sinewave, Amplitude: 2.828, Offset: 0V, Frequency: 1kHz and Phase: 0 - * Expected Result: The voltage displayed in the voltmeter’s channel 1 should be around 1.9Vrms to 2.1Vrms and the voltage display for voltmeter’s channel 2 should be around 0.9Vrms to 1.0Vrms. Wait for about 1 minute to record at least 3 readings - * Step 4.8: Stop the voltmeter and open the .csv file using MS Excel. - * Expected Result: The voltmeter reading should be recorded on the .csv file in continuation with the previous reading and should now record with 20 second interval. - * Step 5: Testing overwrite mode - * Step 5.1: Turn on the Data logging feature and choose Overwrite - * Expected Result: Refer to the image for reference - * Step 5.2: Repeat steps 4.2 to 4.8 - * Expected Result: The results should be the same but every run and stop of the voltmeter should replace the data on the .csv file chosen completely with the new readings. - * Step 6: Test range feature - * Step 6.1: Set channel 1 and 2 in DC Mode with range for both channels set to +-25V. Turn on the Peak hold feature of the voltmeter - * Expected Result: The interface should look like in the “Step Resources” picture (left side), the numerical value should indicate that it’s in VDC mode. - * Step 6.2: Connect scope ch1+ to positive supply and scope ch1- to gnd. Connect scope ch2+ to negative supply and scope ch2- to gnd - * Step 6.3: Set the positive power supply to 3.3V and the negative supply to -3.3V. - * Expected Result: The voltmeter readings should be around [3.2V, 3.4V] for channel 1 and [-3.4V, -3.2V] for channel 2. - * Step 6.4: Without disabling the power supply, change the range for both voltmeter channels to +-2.5V instead of +-25V. - * Expected Result: “Out of range” should be raised for both channels. - * Step 6.5: Still with range set to +-2.5V for both channels, set the power supply to output +100mV and -100mV. - * Expected Result: The voltmeter readings should be around [0.097V, 0.103V] for channel 1 and [-0.103V, -0.097V] for channel 2. - * Step 6.6: Without disabling the power supply, change the range for both voltmeter channels to +-25V instead of +-2.5V. - * Expected Result: “Out of range” should be raised for both channels. +**Steps:** + 1. Test Peak hold feature + 2. Set channel 1 and 2 in DC Mode + - **Expected Result:** The numerical value should indicate that it’s in VDC mode. + 3. Connect scope ch1+ to positive supply and scope ch1- to gnd. Connect scope ch2+ to negative supply and scope ch2- to gnd + 4. Turn on the Peak hold feature of the voltmeter + - **Expected Result:** The voltmeter window should now show the min and max indicator for both channels. See image for reference. + 5. Set +power supply to 2.5V and –power supply to -3V then turn on the power supply first before the voltmeter + - **Expected Result:** The voltage displayed in channel 1’s max voltage should be around 2.4V to 2.6V and the min should still be 0V. The voltage displayed on channel 2’s min voltage should be around -3.1V to -2.9V and the max voltage should be 0V + 6. Following step 4 Set +power supply to 5 V and –power supply to -5V + - **Expected Result:** The voltage displayed in channel 1’s max voltage should be around 4.9V to 5.1V and the min should still be 0V. The voltage displayed on channel 2’s min voltage should be around -5.1V to -4.9V and the max voltage should be 0V + 7. Connect scope ch1+ to negative supply and scope ch1- to gnd. Connect scope ch2+ to positive supply and scope ch2- to gnd + 8. Set +power supply to 2.5V and –power supply to -3V then turn on the power supply first before the voltmeter + - **Expected Result:** The voltage displayed in channel 2’s max voltage should be around 2.4V to 2.6V and the min should still be -5V. The voltage displayed on channel 1’s min voltage should be around -3.1V to -2.9V and the max voltage should be 5V + 9. Following step 7 Set +power supply to 5 V and –power supply to -5V + - **Expected Result:** The voltage displayed in channel 2’s max voltage should be around 4.9V to 5.1V and the min should still be -5V. The voltage displayed on channel 1’s min voltage should be around -5.1V to -4.9V and the max voltage should be 5V + 10. Test the reset instrument feature + 11. Stop Voltmeter instrument then click the reset instrument button for the peak hold features + - **Expected Result:** The max and min reading for both channels should return to 0V. + 12. Test Data logging feature + 13. Set channel 1 in low frequency AC mode and channel 2 in high frequency AC Mode + - **Expected Result:** The numerical value should indicate that it’s in AC mode by showing that it’s reading the VRMS of the signal. + 14. Connect scope ch1+ to AWG ch1 and scope ch1- to gnd. Connect scope ch2+ to AWG ch2 and scope ch2- to gnd + 15. Testing Append mode + 16. Turn on the Data logging feature and choose Append + 17. For the timer choose 5 seconds + 18. Open a .csv file where the data will be logged + - **Expected Result:** The voltmeter reading should be recorded on the .csv file with 5 second interval. + 19. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Sine Wave, Amplitude: 2.828V, Offset: 0V, Frequency: 200Hz and Phase: 0. Set the Signal generator’s channel 2 configuration to the following setting Waveform Type: Square Wave, Amplitude: 3, Offset: 0V, Frequency: 1kHz and Phase: 0. Run both the Signal generator and voltmeter + - **Expected Result:** Wait for about 1 minute to record at least 6 readings. + 20. Stop the voltmeter and open the .csv file using MS Excel. + - **Expected Result:** The voltmeter reading should be recorded on the .csv file with 5 second interval. + 21. Change the timer for 20 seconds + - **Expected Result:** The voltmeter reading should be recorded on the .csv file with 20 second interval. + 22. Set the Signal generator’s channel 1 configuration to the following setting Waveform Type: Triangle Wave, Amplitude: 6.928V, Offset: 0V, Frequency: 200 Hz and Phase: 0. Set the Signal generator’s channel 2 configuration to the following setting Waveform Type: Sinewave, Amplitude: 2.828, Offset: 0V, Frequency: 1kHz and Phase: 0 + - **Expected Result:** The voltage displayed in the voltmeter’s channel 1 should be around 1.9Vrms to 2.1Vrms and the voltage display for voltmeter’s channel 2 should be around 0.9Vrms to 1.0Vrms. Wait for about 1 minute to record at least 3 readings + 23. Stop the voltmeter and open the .csv file using MS Excel. + - **Expected Result:** The voltmeter reading should be recorded on the .csv file in continuation with the previous reading and should now record with 20 second interval. + 24. Testing overwrite mode + 25. Turn on the Data logging feature and choose Overwrite + - **Expected Result:** Refer to the image for reference + 26. Repeat steps 17 to 23 + - **Expected Result:** The results should be the same but every run and stop of the voltmeter should replace the data on the .csv file chosen completely with the new readings. + 27. Test range feature + 28. Set channel 1 and 2 in DC Mode with range for both channels set to +-25V. Turn on the Peak hold feature of the voltmeter + - **Expected Result:** The numerical value should indicate that it’s in VDC mode. + 29. Connect scope ch1+ to positive supply and scope ch1- to gnd. Connect scope ch2+ to negative supply and scope ch2- to gnd + 30. Set the positive power supply to 3.3V and the negative supply to -3.3V. + - **Expected Result:** The voltmeter readings should be around [3.2V, 3.4V] for channel 1 and [-3.4V, -3.2V] for channel 2. + 31. Without disabling the power supply, change the range for both voltmeter channels to +-2.5V instead of +-25V. + - **Expected Result:** “Out of range” should be raised for both channels. + 32. Still with range set to +-2.5V for both channels, set the power supply to output +100mV and -100mV. + - **Expected Result:** The voltmeter readings should be around [0.097V, 0.103V] for channel 1 and [-0.103V, -0.097V] for channel 2. + 33. Without disabling the power supply, change the range for both voltmeter channels to +-25V instead of +-2.5V. + - **Expected Result:** “Out of range” should be raised for both channels.