added measure frequency and Mk2 libraries#54
Conversation
|
@TomQD-94 Thanks - the timing parts look okay to me. I'm not sure what the MOD_IMAGE and MOD_IMAGE3D changes mean. What are these for? |
|
@TomQD-94 Is this ready for merge? |
I think now it is ready but would prefer a test from someone else to ensure I haven't forgotten something. Perhaps when I have confirmed it works with the shipped systems at your facility we can merge it in. |
remove superfluous logging
fix of timing
Feature/ttl internal. TTL start the frame with provided frame length from itfg
* bzip-devel to bzip2-devel * erase maximum of requested (next run) and actual (last run) frames, avoiding errorenous timing values * disable circular buffers for GSE ioc * tweak GSE-7elem config * trim scalars saved by default via XML file, but add 'full' XML config * add short (25ms) sleep before checking if frame 0 acquire is done * Bring the iocDualMini_4ch IOC up-to-date, using the common startup files --------- Co-authored-by: Matt Newville <newville@cars.uchicago.edu> Co-authored-by: Tejas Guruswamy <tguruswamy@anl.gov>
BenBradnick
left a comment
There was a problem hiding this comment.
Looks good, just needs a bit of a tidy up to not lose the default configuration for IOCs.
| dbpf("$(PREFIX)det1:NumImages", 1000) | ||
| dbpf("$(PREFIX)det1:AcquireTime", 1) |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| # dbpf("$(PREFIX)det1:CONFIG_PATH", "/etc/xspress3/calibration/initial") | ||
| dbpf("$(PREFIX)det1:CONFIG_PATH", "$(SUPPORT)/../xspress3_settings/current/") | ||
| dbpf("$(PREFIX)det1:CONFIG_PATH", "/home/xspress3/xspress3_settings/4channel") | ||
|
|
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
|
||
| # Number of xspress3 cards and IP ADDR | ||
| epicsEnvSet("XSP3CARDS", "1") | ||
| epicsEnvSet("XSP3CARDS", "2") |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| # card0_clocks.dat, chan1_reion0.dat, etc | ||
| # dbpf("$(PREFIX)det1:CONFIG_PATH", "/etc/xspress3/calibration/initial") | ||
| dbpf("$(PREFIX)det1:CONFIG_PATH", "$(SUPPORT)/../xspress3_settings/current/") | ||
| dbpf("$(PREFIX)det1:CONFIG_PATH", "$(SUPPORT)/../xspress3_settings/4channel/") |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
| } | ||
| plotcom { | ||
| title="Last Frame" | ||
| title="Last Fram" |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
xspress3App/src/xspress3Epics.cpp
Outdated
| } | ||
|
|
||
| printf("xsp3_clocks_setup: Measured frequency %.2f MHz\n", float(xsp3_status)/1.0e6); | ||
| // TODO: XSP4_CLK_SRC_MIDPLN_LMK61E2 for Mk2 systems |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
xspress3App/src/xspress3Epics.cpp
Outdated
| xsp3_status = xsp3->clocks_setup(xsp3_handle_, -1, generation == 3 ? XSP3M_CLK_SRC_LMK61E2 : (generation == 2 ? ((mark == 2) ? XSP4_CLK_SRC_MIDPLN_LMK61E2 : XSP3M_CLK_SRC_CDCM61004) : XSP3_CLK_SRC_XTAL), | ||
| XSP3_CLK_FLAGS_MASTER | XSP3_CLK_FLAGS_NO_DITHER, 0); | ||
| if (xsp3_status < 0) { |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
xspress3App/src/xspress3Epics.cpp
Outdated
| // TODO Is this needed for Mk2? | ||
| // u_int32_t actual_trigger_mode; | ||
| // xsp3_get_glob_timeA(xsp3_handle_, card, &actual_trigger_mode); | ||
| // } | ||
| // int xsp3_status = xsp3->set_sync_mode(xsp3_handle_, XSP3_SYNC_MIDPLANE, 0 , 0); | ||
| // if (xsp3_status != XSP3_OK) { | ||
| // checkStatus(xsp3_status, "xsp3_set_sync_mode", functionName); | ||
| // status = asynError; | ||
| } |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Almost all of the changes are just renaming The data module library is a generic library so it is used in many device libraries. |
|
Branch ready for merge. |
|
@newville Please review and suggest any changes you want to this before merging in. Thanks |
|
Hi @newville I have commented on your issue (#60) - I was unable to reproduce it here. If you still get the issue when testing this branch (and commenting out your original sleep) then I don't think #62 will cause any issues for systems which don't have the problem. #56 should be resolved as the repeated call has been removed and we haven't identified any problems during testing so far. |
|
@TomQD-94 @BenBradnick OK, as discussed at #60, I think we should merge this, and I'll see if something specific to "very old Xspress3" requires the "sleep" discussed there and at #56. |
This is a branch to allow using the community EPICS with Mk2 hardware.
Measures frequency of the clock to generate the right time frame for the acquisition time.
Updates to libraries for updates to firmware.