forked from M-Labs/artiq-zynq
driver: cleanup xml download fn
This commit is contained in:
parent
8699ecd3bb
commit
aed4e2fa25
@ -269,18 +269,18 @@ class IdleKernel(EnvExperiment):
|
|||||||
self.cnt = [0]
|
self.cnt = [0]
|
||||||
self.timestamp = [np.int64(0)]
|
self.timestamp = [np.int64(0)]
|
||||||
|
|
||||||
|
@kernel
|
||||||
|
def extract_camera_xml(self):
|
||||||
|
# DEBUG: download xml data
|
||||||
|
self.cxp.get_xml_data(0xc0000000, self.vals)
|
||||||
|
self.cxp.write_xml_data(self.vals, "genicam_16e13898.zip")
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def camera_init(self):
|
def camera_init(self):
|
||||||
self.cxp.init()
|
self.cxp.init()
|
||||||
|
|
||||||
@kernel
|
@kernel
|
||||||
def camera_trigger_setup(self):
|
def camera_trigger_setup(self):
|
||||||
# self.cxp.init()
|
|
||||||
|
|
||||||
# DEBUG: get xml data
|
|
||||||
# self.cxp.get_xml_data(0xc0000000, self.vals)
|
|
||||||
|
|
||||||
|
|
||||||
# DEBUG: Try to setup trigger
|
# DEBUG: Try to setup trigger
|
||||||
# All address below is from the XML, what's the point of bootstrap anyway?
|
# All address below is from the XML, what's the point of bootstrap anyway?
|
||||||
# NOTE: setting is persistent over ConnectionReset but NOT power cycle
|
# NOTE: setting is persistent over ConnectionReset but NOT power cycle
|
||||||
@ -361,4 +361,4 @@ class IdleKernel(EnvExperiment):
|
|||||||
|
|
||||||
|
|
||||||
# self.cxp.print_xml_url()
|
# self.cxp.print_xml_url()
|
||||||
# self.cxp.write_xml_data(self.vals, "genicam_16e13898.zip")
|
# self.extract_camera_xml()
|
||||||
|
Loading…
Reference in New Issue
Block a user