Closed beauremus closed 4 months ago
I was told that this an old and known issue w/ Erlang FEs. FTP higher than 1Hz results in undesirable behavior. I'll run some tests on the FE in question and see what pops out in the logs. The workaround is to always plot at 1Hz.
For the device in question (R:IP3170) this is handled via the CLX56 FE via a modbus link to a Raspberry Pi based device.
The FE config is:
,{49, modbus_driver, {"cia-mi30203", %% MI30_ [ %% Digital reads (slots 0-15) {0,1,3,16#0100,112} %% slots 0-6 ,{1,1,3,16#0170,112} %% slots 7-13 %% Analog reads (slots 0-15) ,{16,1,3,16#0300,112} %% slots 0-6 ,{17,1,3,16#0370,112} %% slots 7-13 ], [ {sample_rate, 989} ,{timeouts, {700,700,cast}} ,{segtyp, bigseg} ] }}
Not seeing any log entries w/ attempting to plot at 15Hz.
Email update
I found an old Elog entry from 2021 where we were able to plot vacuum data from I:IP100E at 15Hz here: https://www-bd.fnal.gov/Elog/?orEntryId=197077 From D80 that pump was moved to PiVac and CLX56E back in 2018.
Going through acsys-fe code looking for modifications to ftpman.erl and ftpman_protocol.erl since 2021.
$ git log ftpman_protocol.erl commit e35d6d3d93c306939a9bc132cc9b0fb38a4bcbf6 Author: Date: Mon Apr 17 14:29:11 2023 -0500
Put in commented out diagnostic for Type Code 8
commit b6ec39b7c5d51669919003448fd0d19f85f9d6e2 Author: Date: Wed Dec 7 11:13:06 2022 -0600
For reply to a retrieve snapshot data request, remove HasTS field that is unexpected by receiver (SA1003).
For completeness on the followup, and in response to the email stating that in 2021 we could plot ion pumps at 15Hz.
During the long shutdown we have:
I'm am currently consulting w/ Rich and Dennis to effect a solution which we hope to have today.
It seems that there was a similar issue back in July. If some of the changes happened after July, maybe they can be dismissed?
Bug fixed. CLX56E was updated w/ new Erlang libraries and the FE was restarted. 15Hz support now works.
This appears to be working 🚀
Describe the bug
See the issue reported in the ELog, https://www-bd.fnal.gov/Elog/?orEntryId=254065.
Recycle Ion Pump plots are showing strange behavior and producing errors when the data requested is a higher rate than 1HZ.
To Reproduce
Affected system