CN0540 Test Suite
Note
User guide: CN0540 user guide
Note
Tester |
Test Date |
Scopy version |
Plugin version (N/A if not applicable) |
Comments |
|---|---|---|---|---|
- Prerequisites:
Scopy v2.3.0 or later with CN0540 plugin installed
CN0540 hardware board connected
IIO kernel drivers loaded for
ad7768-1,ltc2606, andone-bit-adc-dacDevice drivers and firmware are up to date
Reset .ini files to default by pressing Reset button in Preferences
Setup Environment
- CN0540.device:
Connect a CN0540 evaluation board to your PC
Ensure IIO kernel drivers are loaded for
ad7768-1,ltc2606, andone-bit-adc-dacConnect to the device in Scopy with the CN0540 plugin enabled
- CN0540.emulator:
Press the add device button and go to emulator
Select the CN0540 device from the emulator list
Enable, verify and select all available plugins
Connect to the device
- CN0540.default:
Use default device settings after connection
Ensure all sections are in their initial collapsed or expanded state
CN0540 Tests
Test 1: Plugin Loads
UID: TST.CN0540.PLUGIN_LOADS
RBP: P0
Description: Verify that the CN0540 plugin loads in Scopy.
OS: ANY
- Preconditions:
Use CN0540.emulator or CN0540.device setup
- Steps:
- Open Scopy application
Expected result: Scopy launches without errors
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 2: Device Detection and Sections Display
UID: TST.CN0540.DEVICE_DETECTION
RBP: P1
Description: Verify that the CN0540 plugin detects the required IIO devices and displays all four collapsible sections.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Connect the CN0540 board and open the CN0540 plugin in Scopy
Expected result: The plugin loads and displays four collapsible sections: Power Control, ADC Driver Settings, Sensor Calibration, and Voltage Monitor
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 4: Power Control: Read SW_FF Status
UID: TST.CN0540.READ_SW_FF
RBP: P1
Description: Verify that clicking Check Status reads the SW_FF fault flag GPIO and displays the result.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the Power Control section and click Check Status next to SW_FF
Expected result: The SW_FF status label is updated with the current fault flag value read from hardware
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 5: Power Control: Shutdown Toggle
UID: TST.CN0540.SHUTDOWN_TOGGLE
RBP: P1
Description: Verify that toggling the Shutdown checkbox writes to the shutdown GPIO and reads back the new state.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the Power Control section and note the current state of the Shutdown checkbox
Expected result: Checkbox reflects the current hardware shutdown state
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 6: Power Control: Constant Current Toggle
UID: TST.CN0540.CONSTANT_CURRENT_TOGGLE
RBP: P1
Description: Verify that toggling the Constant Current checkbox writes to the blue LED GPIO and reads back the new state.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the Power Control section and note the current state of the Constant Current checkbox
Expected result: Checkbox reflects the current hardware GPIO state
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 7: ADC Driver Settings: FDA Status Toggle
UID: TST.CN0540.FDA_STATUS_TOGGLE
RBP: P1
Description: Verify that toggling the FDA Status checkbox enables or disables the FDA amplifier and the status label updates accordingly.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the ADC Driver Settings section and note the current state of the FDA Status checkbox
Expected result: Checkbox reflects the current FDA enable state
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 8: ADC Driver Settings: FDA Mode Toggle
UID: TST.CN0540.FDA_MODE_TOGGLE
RBP: P1
Description: Verify that toggling the FDA Mode checkbox switches the FDA between FULL POWER and LOW POWER modes.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the ADC Driver Settings section and note the current state of the FDA Mode checkbox
Expected result: Checkbox reflects the current power mode (checked = FULL POWER, unchecked = LOW POWER)
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 9: Sensor Calibration: Input Voltage Read
UID: TST.CN0540.INPUT_VOLTAGE_READ
RBP: P1
Description: Verify that the Input Voltage field displays a valid ADC voltage reading from the ad7768-1 device.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the Sensor Calibration section and click Refresh
Expected result: The Input Voltage [mV] label displays a numeric voltage value read from the
ad7768-1voltage0channelActual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 10: Sensor Calibration: Shift Voltage Write/Readback
UID: TST.CN0540.SHIFT_VOLTAGE_WRITE
RBP: P1
Description: Verify that entering a shift voltage value and clicking Write sends the value to the ltc2606 DAC, and clicking Read reflects the written value.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the Sensor Calibration section and click Read next to Shift Voltage [mV]
Expected result: The shift voltage field displays the current DAC voltage read from hardware
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 11: Sensor Calibration: Sensor Voltage Calculation
UID: TST.CN0540.SENSOR_VOLTAGE_READ
RBP: P1
Description: Verify that clicking Read in the Sensor Voltage row calculates and displays a valid sensor voltage from the ADC, DAC, and FDA parameters.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the Sensor Calibration section and click Read next to Sensor Voltage [mV]
Expected result: The Sensor Voltage [mV] label updates with a calculated numeric voltage value derived from the ADC input, DAC shift voltage, FDA gain, and FDA output common mode
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 12: Sensor Calibration: Calibration Routine
UID: TST.CN0540.CALIBRATE
RBP: P2
Description: Verify that clicking Calibrate runs the iterative calibration routine and reports a completion status.
OS: ANY
- Preconditions:
Use CN0540.device setup
- Steps:
- Expand the Sensor Calibration section and click Calibrate
Expected result: The calibration routine starts; the status label updates while the routine runs (up to 20 iterations)
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 13: Voltage Monitor: Pin Voltages Display
UID: TST.CN0540.VOLT_MON_DISPLAY
RBP: P2
Description: Verify that the Voltage Monitor section displays numeric voltage readings for all six analog pins when a supported auxiliary ADC is present.
OS: ANY
- Preconditions:
Use CN0540.device setup
An
xadcorltc2308auxiliary ADC device is present
- Steps:
- Open the CN0540 plugin and expand the Voltage Monitor section
Expected result: The section is visible and displays six labeled voltage fields: Vin+, Vgpio2, Vgpio3, Vcom, Vfda+, Vfda-
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL
Test 14: Voltage Monitor: Automatic Refresh
UID: TST.CN0540.VOLT_MON_AUTO_REFRESH
RBP: P3
Description: Verify that the Voltage Monitor section automatically updates all six pin voltages every second without user interaction.
OS: ANY
- Preconditions:
Use CN0540.device setup
An
xadcorltc2308auxiliary ADC device is present
- Steps:
- Open the CN0540 plugin, expand the Voltage Monitor section, and note the displayed values
Expected result: Six voltage labels are displayed with current readings
Actual result:
Tested OS:
Comments:
Result: PASS/FAIL