Commit 61d645f6 authored by Vincent Michel's avatar Vincent Michel

Add parameter functions to the interface

parent cee6f14a
......@@ -162,10 +162,19 @@ def close_log():
# int xiaRemoveChannelSet(unsigned int detChan);
# Parameter
# Parameters
def set_acquisition_value(channel, name, value):
pointer = ffi.new('double *', value)
check_error(handel.xiaSetAcquisitionValues(channel, name, pointer))
def get_acquisition_value(channel, name):
pointer = ffi.new('double *')
check_error(handel.xiaGetAcquisitionValues(channel, name, pointer))
return pointer[0]
# int xiaSetAcquisitionValues(int detChan, char *name, void *value);
# int xiaGetAcquisitionValues(int detChan, char *name, void *value);
# int xiaRemoveAcquisitionValues(int detChan, char *name);
# int xiaUpdateUserParams(int detChan);
# int xiaGainOperation(int detChan, char *name, void *value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment