Skip to content

Implement Negative Voltage Range Support #265

@tylerkron

Description

@tylerkron

Type: Feature
Priority: High
Epic: Enhanced Resolution & Range Support

Description

Add support for negative voltage ranges (±10V) in addition to positive ranges (0-5V, 0-10V) for differential analog inputs.

Acceptance Criteria

  • Update voltage range handling to support negative ranges
  • Correctly interpret signed vs unsigned raw values from device
  • Support bipolar ranges: ±1V, ±5V, ±10V
  • Maintain support for unipolar ranges: 0-1V, 0-5V, 0-10V
  • Update data sample processing for negative voltages
  • Unit tests for positive and negative voltage scaling

Key Changes

  • Handle signed integer conversion for bipolar ranges
  • Update offset calculations for centered ranges
  • Ensure UI displays negative values correctly

Files to Modify

  • Daqifi.Desktop/Device/AbstractStreamingDevice.cs (scaling and data processing)
  • Daqifi.Desktop/Channel/AnalogChannel.cs (range validation)

Value

Enables accurate measurement of negative voltages on Nyquist 3's ±10V differential inputs

Testing Requirements

  • Test positive voltage scaling (0V to +10V)
  • Test negative voltage scaling (-10V to 0V)
  • Test full bipolar range scaling (-10V to +10V)
  • Verify correct zero-point handling
  • Integration test with actual differential measurements

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions