nibcq.errors.LCRParameterError

exception nibcq.errors.LCRParameterError(message: str = 'Invalid LCR parameter configuration.')

Bases: BCQError

Exception raised when LCR Meter parameters are invalid or out of range.

These indicate that a parameter passed to the LCR Meter measurement is invalid, out of range, or incompatible with other settings.

This error is specific for the NIBCQ Python API LCR Meter support.

Parameters:

message (str, optional) – Custom error message. Defaults to a standard message.

Examples

The following are examples of how this error can be raised:

  • General: LCR parameter error

    >>> raise LCRParameterError("Invalid LCR parameter configuration.")
    
  • Specific: Invalid voltage range

    >>> raise LCRParameterError("Unsupported voltage range: 50V")
    
  • Specific: Invalid cable length

    >>> raise LCRParameterError("Unsupported cable length: 3m")
    
  • Specific: Load compensation validation

    >>> raise LCRParameterError(
    >>>     "Load compensation requires both open AND short compensation to be enabled"
    >>> )