-
Notifications
You must be signed in to change notification settings - Fork 2
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
CCD100: test mk3 protocol file with mk2 device #7005
Comments
Doesn't look possible as it requires substituting an InTerminator at runtime (mk3 uses "\r\n" but mk2 uses "\r\r\n"), as well as uncommenting a line from getCurrRead. |
Terminators can be set using in the st.cmd file, alternatively different protocol files could be opened based on the model number, slightly more complicated, but possible using a macro that is then compared in the st.cmd file (we do this for Danfysiks as an example) |
I don't think you can set system vars when referencing a .proto file from a db - we tried setting the terminator based on $(IFMK3) and then passing as I also don't think we'd be able to uncomment the |
You don't have to set the terminators at the streamdevice level, it can be done at the asyn level instead. See https://github.com/ISISComputingGroup/EPICS-ioc/blob/7a9a8b3bedfd769d10797b4e1642500763c427f7/KHLY2400/iocBoot/iocKHLY2400-IOC-01/st-common.cmd#L18 for an example of how we do variable terminators for a keithley 2400 for example. If it's just one protocol function that's different, we might just need to have Give me a shout on teams if this doesn't make sense and I will explain better... |
protocol file for a keithley 2400 (note no terminators in this file as tom says they are set at asyn level) https://github.com/ISISComputingGroup/EPICS-Keithley2400/blob/master/Keithley2400Sup/Keithley2400.proto |
Asyn doesn't let you use more than 2 characters for the Eos characters it seems? |
Evan and I have modified it so it works with 3 chars: ISISComputingGroup/EPICS-asyn#25 I'm not sure if it was set to a 2 char limit for a good reason but if not it might be worth pushing this upstream? |
Works well with MK3 - just tested one CG set up |
decided to remove the tests, as there's no point testing against the prevention of something if it is no longer an issue. we don't test logging for other IOCs either. |
As a developer I would like to know if the mk3 (tcp) CCD100 protocol file added during #6440 can be merged/adapted for use with an existing mk2 (serial) CCD100
acceptance criteria
The text was updated successfully, but these errors were encountered: