Skip to content

Replacing DriverError with Error. Adding additional error code for timeout exceeded error.#216

Merged
DelpireNI merged 2 commits intomainfrom
users/cdelpire/fix-error-handling-in-dcpower-measurement-example
Jan 23, 2023
Merged

Replacing DriverError with Error. Adding additional error code for timeout exceeded error.#216
DelpireNI merged 2 commits intomainfrom
users/cdelpire/fix-error-handling-in-dcpower-measurement-example

Conversation

@DelpireNI
Copy link
Copy Markdown
Contributor

@DelpireNI DelpireNI commented Jan 20, 2023

Signed-off-by: Chris Delpire chris.delpire@ni.com

What does this Pull Request accomplish?

  1. nidcpower.DriverError does not exist. It should be nidcpower.Error. It should be nidcpower.errors.DriverError. (Fixed fgen too)
  2. When testing with real hardware and adding a source delay, the error code I got was -1074097933 (kErrorTimeoutExceeded).

Fixed the error handling and added the additional error code check.

Why should this Pull Request be merged?

Current example does not support source delay with hardware.

What testing has been done?

Tested on a machine with an actual SMU device.

…meout exceeded error.

Signed-off-by: Chris Delpire <chris.delpire@ni.com>
Comment thread examples/nidcpower_source_dc_voltage/measurement.py Outdated
Signed-off-by: Chris Delpire <chris.delpire@ni.com>
@DelpireNI DelpireNI merged commit 01ed3af into main Jan 23, 2023
@dixonjoel dixonjoel deleted the users/cdelpire/fix-error-handling-in-dcpower-measurement-example branch February 2, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants