Пример #1
0
from qem_setter import QemSetter
import time

setter = QemSetter()

setter.setResistorValue('VCM', 2)
setter.setResistorRegister('auxsample', 50)
setter.changeDefaults(True)
setter.setClock(25)

while True:
    for i in range(-10, 10):
        if i < 0:
            setter.setResistorValue('VCTRL', (3 + (.5 * i)))
        else:
            setter.setResistorValue('VCTRL', (3 - (.5 * i)))
        time.sleep(2)
        
Пример #2
0
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Jan  8 17:38:08 2018

@author: rha73
"""
import time
from QemCam import *
from qem_setter import QemSetter
import requests

####### this section for the QEM backplane interface

backplane = QemSetter(url="http://192.168.0.123")
####### end of backplane setup section

qemcamera = QemCam()

print qemcamera.server_ctrl_ip_addr

qemcamera.connect()

#increase ifg from minimum
qemcamera.set_ifg()

qemcamera.x10g_stream.check_trailer = True

qemcamera.set_clock()

qemcamera.turn_rdma_debug_0ff()