muchnoi / HPGe-Acquisition

Using multichannel analyzer by CAEN for acquiring data from HPGe detector. Python wrapper for CAEN DPP Lib and PyQt GUI example.
GNU General Public License v3.0
1 stars 0 forks source link

Well done! But we have some issues #1

Open F4lko opened 4 years ago

F4lko commented 4 years ago

Dear muchnoi,

I really enjoy your work! I tried to use your program with our detector from CAEN. For that purpose I run your program on Windows 10 and changed therefore the Lib-calling to: dpplib = cdll.LoadLibrary('CAENDPPLib.dll')

Because our detector has no HV Channels, I also disabled the HV-Tab:

# for i in [1,2,3]: self.gui.Tabs.setTabEnabled(i, True)
          for i in [2,3]: self.gui.Tabs.setTabEnabled(i, True)

So far, the connection works well Screenshot_Connect_IFK

After that, when I changed the TAB to SP I get the following Error:

_Warning: no pulser_file in environment.cfg Invalid parameter The selected board doesn't support HV Channels Traceback (most recent call last): File "C:\Users\p6sofa2\Desktop\Python# From Nickolai\HPGe 2020-10\TABs__init.py", line 30, in Tab_Changed elif index==3: SP.init(self); self.gui.timerA.stop() File "C:\Users\p6sofa2\Desktop\Python# From Nickolai\HPGe 2020-10\TABs\TAB_SP.py", line 54, in init__ self.Read_Acquisition_Parameters() File "C:\Users\p6sofa2\Desktop\Python# From Nickolai\HPGe 2020-10\TABs\TAB_SP.py", line 78, in Read_AcquisitionParameters self.gui.UBar.setRange(0, int(C['VMax'])); self.gui.UBar.setFormat("%v V") TypeError: 'bool' object is not subscriptable

Can you help me with that?

muchnoi commented 4 years ago

Dear F4lko, thank you for your interest. These errors occur due to the presence of high voltage monitoring widgets in TAB_SP.py. So you can try to comment out these lines. I've created this gui in order to suit my needs with the hardware I use. I could probably help you more if I knew what you want to get out of using this code.

F4lko commented 4 years ago

Dear muchnoi,

thank you for your quick answer. I want to do NRA and RBS measurements with our device and your program. An older version of your program from 08/2020 works in the first instance.

Later on I want integrate a motorcontrol and currentmeasurement (both programms are build already by me) in your program.

Since I really enjoy the progress of your program, I tried to use the newest version. Maybe it is possible to ignore everything that has to do with HV, when the program checks that the device has no HV Channels?

muchnoi commented 4 years ago

Dear F4lko,

I tried to do what you asked. Please check and tell me about the result

F4lko commented 4 years ago

Dear muchnoi, Thanks for you help!

The connection works. When I switch to the OS-TAB the following error-message occurs and program closes:

_Traceback (most recent call last): File "C:\Users\p6sofa2\Desktop\Python# From Nickolai\HPGe 2020-10b\TABs__init.py", line 29, in Tab_Changed elif index==2: OS.init(self); self.gui.timerA.stop() File "C:\Users\p6sofa2\Desktop\Python# From Nickolai\HPGe 2020-10b\TABs\TAB_OS.py", line 8, in init__ for k,v in self.DPP.GetInfoDict("NumVirtualProbes1", "SupportedVirtualProbes1").items(): File "C:\Users\p6sofa2\Desktop\Python# From Nickolai\HPGe 2020-10b\DPPLib\DPPL.py", line 54, in GetInfoDict name = DPP_Probes[attrlist][num] IndexError: list index out of range

When I switch to SP-TAB just the following message occurs and it seems to be working: Invalid parameter

muchnoi commented 4 years ago

It seems that your N6730 digitizer is not compatible with CAENDPP library...

muchnoi commented 4 years ago

please send me connection screenshot with parameters

muchnoi commented 4 years ago

N6730 belongs to "730 family", while CAENDPP_PHA_VIRTUALPROBE is supported only by x770 either x724 families. (As I understand from caen website)

F4lko commented 4 years ago

This is the connection screenshot:

Screenshot_Connect_IFK_02

I installed the _CAENDPPLibSetup-1.9.120190322. This CAENDPP library should support the Board, I think.