Ricoh Waveform


In [1]:
#out = PH_FIRE_VOLTAGE_OFFSET + 1023*out*aCalibration/(1000 * PH_FIRE_VOLTAGE_AMPLITUDE);
PH_FIRE_VOLTAGE_OFFSET = 65.0
PH_FIRE_VOLTAGE_AMPLITUDE = 2935.0
Calibrated_PH_Voltage = 1607.0

amp_xls = 1050.0

dac_value = PH_FIRE_VOLTAGE_OFFSET + 1023.0*amp_xls*Calibrated_PH_Voltage/(1000.0 * PH_FIRE_VOLTAGE_AMPLITUDE);
print("DAC_Value = {} AMP_XLS = {}".format(dac_value, amp_xls))


DAC_Value = 653.1291482112437 AMP_XLS = 1050.0

Rip speed calc


In [2]:
def pages_per_min(time, pages):
  pages_sec = pages/time
  pages_min = pages_sec*60.0
  print("pages per min = {}".format(pages_min))

In [3]:
pages = 1.0
time = 2.0
pages_per_min(time, pages)
time = 8.0
pages_per_min(time, pages)


pages per min = 30.0
pages per min = 7.5

In [4]:
pages = 1.0
time = 16.0
pages_per_min(time, pages)
time = 7.0
pages_per_min(time, pages)


pages per min = 3.75
pages per min = 8.571428571428571

In [5]:
pages = 3.0
time = 10.0
pages_per_min(time, pages)
time = 6.0
pages_per_min(time, pages)


pages per min = 18.0
pages per min = 30.0

In [6]:
pages = 3.0
time = 43.0
pages_per_min(time, pages)
time = 8.0
pages_per_min(time, pages)


pages per min = 4.186046511627907
pages per min = 22.5

In [7]:
pages = 4.0
time = 6.0
pages_per_min(time, pages)
time = 13.0
pages_per_min(time, pages)


pages per min = 40.0
pages per min = 18.461538461538463

In [8]:
pages = 4.0
time = 52.0
pages_per_min(time, pages)
time = 11.0
pages_per_min(time, pages)


pages per min = 4.615384615384616
pages per min = 21.81818181818182

In [9]:
pages = 25.0
time = 20.0
pages_per_min(time, pages)
time = 98.0
pages_per_min(time, pages)


pages per min = 75.0
pages per min = 15.306122448979592

In [10]:
pages = 25.0
time = 80.0
pages_per_min(time, pages)
time = 166.0
pages_per_min(time, pages)


pages per min = 18.75
pages per min = 9.036144578313253

In [11]:
pages = 100.0
time = 342.0
pages_per_min(time, pages)


pages per min = 17.543859649122805

In [12]:
pages = 100.0
time = 750.0
pages_per_min(time, pages)


pages per min = 8.0

In [13]:
pages = 100.0
time = 733.0
pages_per_min(time, pages)


pages per min = 8.185538881309686

In [14]:
pages = 100.0
time = 36*60+10.0
pages_per_min(time, pages)
time = (10+12)*60.0+52
pages_per_min(time, pages)


pages per min = 2.7649769585253456
pages per min = 4.373177842565598

In [15]:
pages = 100.0
time = 6*60.0+24
pages_per_min(time, pages)
time = (11+6)*60.0+40+50
pages_per_min(time, pages)


pages per min = 15.625000000000002
pages per min = 5.405405405405405

In [16]:
import numpy as np
np.linspace(100, 84, num=8)
np.linspace(100,95.4, num=4)


Out[16]:
array([ 100.        ,   98.46666667,   96.93333333,   95.4       ])

In [ ]: