-
Notifications
You must be signed in to change notification settings - Fork 1
Ticket2173 HRPD Sample Changer #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
ROTSC/iocBoot/iocROTSC-IOC-01/st.cmd
Outdated
|
|
||
| $(IFDEVSIM) freeIPPort("FREEPORT") | ||
| $(IFDEVSIM) epicsEnvShow("FREEPORT") | ||
| $(IFDEVSIM) drvAsynIPPortConfigure("L0", "localhost:57677") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we get the number of the free port, we should use it
ROTSC/iocBoot/iocROTSC-IOC-01/st.cmd
Outdated
| $(IFNOTDEVSIM) asynSetOption("L0", -1, "parity", "$(PARITY=none)") | ||
| $(IFNOTDEVSIM) asynSetOption("L0", -1, "stop", "$(STOP=1)") | ||
| $(IFNOTDEVSIM) asynOctetSetInputEos("L0", -1, "\r") | ||
| $(IFNOTDEVSIM) asynOctetSetOutputEos("L0", -1, "\r") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a macro instead of repeating "L0", as in other IOCs (though I expect not all of them)
| <macro name="BAUD" pattern="^[0-9]+$" description="Serial communication baud rate, defaults to 57600." /> | ||
| <macro name="BITS" pattern="^[0-9]$" description="Serial communication number of bits, defaults to 8." /> | ||
| <macro name="PARITY" pattern="^(even)|(odd)|(none)$" description="Serial communication parity, defaults to none." /> | ||
| <macro name="STOP" pattern="^[0-9]$" description="Serial communication stop bit, defaults to 1." /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Standard pattern is (Default: number) in brackets rather than defaults to...
|
Did you get any associated IOC log errors? Did you try restarting the OPI a couple of times? |
|
Looking at the IOC log, I think the issue might have been that devsim wasn't set correctly. I think there might be an issue in the GUI as I'm certain Devsim was set for the IOC. I can retest that. Please fix the other highlighted issues for now and I'll retest. |
|
Devsim works fine, thanks. Happy with the changes. Please could you just do a couple more things:
|

Description of work
Added support for the HRPD sample changer, including IOC, OPI and emulator as per ISISComputingGroup/IBEX#2173.
EPICS-Top: https://github.com/ISISComputingGroup/EPICS/pull/80
Emulator: ISISComputingGroup/EPICS-DeviceEmulator#12
Support: https://github.com/ISISComputingGroup/EPICS-rotating_sample_changer
GUI: ISISComputingGroup/ibex_gui#480
To test
The basics:
Testing against the VI:
Some slight niggles:
Code Review
check_opi_format.pyto help with this.Functional Tests
Final steps