def convert_adc_samples(unit='ADC Counts'):
    """
    Provides the conversion factor to go from raw ADC samples or Streamer counts
    to a voltage output at the SQUID in Volts.

    Parameters
    ----------
    unit : string ['ADC Counts', 'Streamer'], default='ADC Counts'
        Starting unit. 'ADC Counts' to convert from adc units such as those
        from get_fast_samples. 'Streamer' to convert from the units used in the
        demodulator streamer channels (ledgerman, parser, get_samples, etc)

    Returns
    -------
    float
        Value in volts at the SQUID Output.
    """

    if not unit.upper()=='ADC COUNTS':
        prefactor = 1/128. # This came from a demod streamer -- between the
                           # 16-vs-24 bits scaling and the presence of the
                           # mixer, this is a factor of 128 scaling
    else:
        prefactor = 1.

    gain_1st_stage = 16 # On SQCB (topology: 1+G1/G2)
    gain_2nd_stage = 4  # On SQCB (inverting topology: G1/G2)
    gain_3rd_stage = 4  # On Mezz, with 50ohm on SQCB and 50ohn on Mezz (inverting topology: G1/G2)
    gain_4th_stage = 0.5 # Passive network between last amplifier and ADC chip
    adc_bits = 16 # SQUID has P-P voltage of 2 Volts. AROCs are in Peak Amplitudes

    vsq_per_aroc = ( (1./ (gain_1st_stage*gain_2nd_stage*gain_3rd_stage*gain_4th_stage))
                    /(2**(adc_bits-1)) )

    return vsq_per_aroc*prefactor