diff --git a/cxp_kernel.py b/cxp_kernel.py index 95f34c4..1c3efe3 100644 --- a/cxp_kernel.py +++ b/cxp_kernel.py @@ -269,18 +269,18 @@ class IdleKernel(EnvExperiment): self.cnt = [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 def camera_init(self): self.cxp.init() @kernel 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 # All address below is from the XML, what's the point of bootstrap anyway? # NOTE: setting is persistent over ConnectionReset but NOT power cycle @@ -361,4 +361,4 @@ class IdleKernel(EnvExperiment): # self.cxp.print_xml_url() - # self.cxp.write_xml_data(self.vals, "genicam_16e13898.zip") + # self.extract_camera_xml()