Name | smartmca JSON |
Version |
0.0.4
JSON |
| download |
home_page | |
Summary | Smart MCA for DT5771 Python Library |
upload_time | 2024-02-12 14:24:18 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.5 |
license | |
keywords |
caen
mca
nuclear instruments
firmware
fpga
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# SmartMCA for Caen DT5771
This library allows to interface user code with the Caen DT5771 MCA Firmware.
With the library it is possible to:
- Connect to the MCA
- Configure high-level MCA/PSD processing parameters
- Start, stop reset 1D and 2D spectra
- Dump waveforms
## Code Example
```Python
from smartmca import SmartMCA
from smartmca import ConfigMCA, ConfigIO
mca = SmartMCA()
mca.connect("http://192.168.102.120", "user", "password")
# or mca.connect("http://localhost", "user", "password") if used on
# integrated jupiterlab
mca.get_server_status()
config = mca.get_mca_configuration()
config.trigger_mode = ConfigMCA.TriggerMode.INTERNAL
config.le_threshold = 5000
config.trigger_type = ConfigMCA.TriggerType.LEADING_EDGE
mca.set_mca_configuration(config)
y= mca.oscilloscope_get_data(enable_trace_processing=False)
plt.plot(y.channels[0].analog)
plt.show()
mca.histogram_start()
time.sleep(5)
stats = mca.get_mca_statistics()
print(stats)
x, counts = mca.histogram_get(rebin=16)
#plot x
plt.plot(x)
plt.show()
```
Raw data
{
"_id": null,
"home_page": "",
"name": "smartmca",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": "",
"keywords": "CAEN,MCA,Nuclear Instruments,firmware,fpga",
"author": "",
"author_email": "Andrea Abba <abba@nuclearinstruments.eu>",
"download_url": "https://files.pythonhosted.org/packages/cc/3b/713ef64831c49480c66daaf18c02ff32392a5d92e07dc5dc5135f85420e9/smartmca-0.0.4.tar.gz",
"platform": null,
"description": "# SmartMCA for Caen DT5771\n\nThis library allows to interface user code with the Caen DT5771 MCA Firmware.\n\nWith the library it is possible to:\n- Connect to the MCA\n- Configure high-level MCA/PSD processing parameters\n- Start, stop reset 1D and 2D spectra\n- Dump waveforms\n\n## Code Example\n\n```Python\nfrom smartmca import SmartMCA\nfrom smartmca import ConfigMCA, ConfigIO\n\n\nmca = SmartMCA()\n\nmca.connect(\"http://192.168.102.120\", \"user\", \"password\")\n# or mca.connect(\"http://localhost\", \"user\", \"password\") if used on\n# integrated jupiterlab\n\nmca.get_server_status()\n\nconfig = mca.get_mca_configuration()\n\nconfig.trigger_mode = ConfigMCA.TriggerMode.INTERNAL\nconfig.le_threshold = 5000\nconfig.trigger_type = ConfigMCA.TriggerType.LEADING_EDGE\n\nmca.set_mca_configuration(config)\n\n\ny= mca.oscilloscope_get_data(enable_trace_processing=False)\nplt.plot(y.channels[0].analog)\nplt.show()\n\nmca.histogram_start()\n\ntime.sleep(5)\n\nstats = mca.get_mca_statistics()\nprint(stats)\n\nx, counts = mca.histogram_get(rebin=16)\n#plot x\nplt.plot(x)\nplt.show()\n\n```",
"bugtrack_url": null,
"license": "",
"summary": "Smart MCA for DT5771 Python Library",
"version": "0.0.4",
"project_urls": {
"Bug Tracker": "https://github.com/NuclearInstruments/libSmartMCA/issues",
"Homepage": "https://github.com/NuclearInstruments/libSmartMCA"
},
"split_keywords": [
"caen",
"mca",
"nuclear instruments",
"firmware",
"fpga"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "abd355c6b4b48195f2d67d0b03567f68d7c11bae38521965141267f49de70005",
"md5": "720148531e96373b8bc882a83b9f4682",
"sha256": "fad5fa88e52cfabc9f84fb0a03bc417cd3c6b8abd792fed5600608ae1a5195ff"
},
"downloads": -1,
"filename": "smartmca-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "720148531e96373b8bc882a83b9f4682",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 8522,
"upload_time": "2024-02-12T14:24:16",
"upload_time_iso_8601": "2024-02-12T14:24:16.858259Z",
"url": "https://files.pythonhosted.org/packages/ab/d3/55c6b4b48195f2d67d0b03567f68d7c11bae38521965141267f49de70005/smartmca-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "cc3b713ef64831c49480c66daaf18c02ff32392a5d92e07dc5dc5135f85420e9",
"md5": "f971fe664ff2709a7c3a48e72d3a261c",
"sha256": "613cdc1a69a9c5753ef797813ff5518f5b29e00c12c1621c9bb121c1aace6e35"
},
"downloads": -1,
"filename": "smartmca-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "f971fe664ff2709a7c3a48e72d3a261c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 7437,
"upload_time": "2024-02-12T14:24:18",
"upload_time_iso_8601": "2024-02-12T14:24:18.035034Z",
"url": "https://files.pythonhosted.org/packages/cc/3b/713ef64831c49480c66daaf18c02ff32392a5d92e07dc5dc5135f85420e9/smartmca-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-12 14:24:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "NuclearInstruments",
"github_project": "libSmartMCA",
"github_not_found": true,
"lcname": "smartmca"
}