Hi Michael and other maintainers,
I have been trying to achieve something with pydevsup, but it's been a bit challenging. I want to have a way to provide a "feedback" to the waveform. I have two examples:
- I have a
waveform record that I am using as a "radio-button", when a second value is selected, I want the first one to be turned off. I implemented that on pydevsup. The problem is that the value is not set back to the waveform. I fixed this via an acalcout, that reads my readback record (i.e., a waveform record that has the get waveform on its INP field) and writes back to the setting record (i.e., the waveform record that has the set waveform on its INP field). This works, but it is a bit clumsy, I think. A coworker achieves this via hardcoded record names and writing back via db.getRecord(RECORDNAME).VAL=XYZ, but I'd prefer to avoid hard-coded record names.
- The second example is one where I have two waveforms, one for entries of position and second for booleans. The boolean waveform is used to indicate which (corresponding) entries the user entered. After entering the data, we'd press a button and the remaining entries would be filled in via interpolation. Here, a feedback would have two uses, first, it would allow me to fill in the interpolated data, second, I would be load the boolean waveform from a file (which is what I am using this new IOC for - managing "presets" for different tuning settings). I assume I could do the same via the
acalcout, but I feel like I might be missing something obvious here. (Since the waveform record lacks DOL, OMSL or OUT, I couldn't use my usual tricks to get this type of feedback working).
Any help would be greatly appreciated.
Hi Michael and other maintainers,
I have been trying to achieve something with
pydevsup, but it's been a bit challenging. I want to have a way to provide a "feedback" to the waveform. I have two examples:waveformrecord that I am using as a "radio-button", when a second value is selected, I want the first one to be turned off. I implemented that onpydevsup. The problem is that the value is not set back to the waveform. I fixed this via anacalcout, that reads my readback record (i.e., awaveformrecord that has theget waveformon itsINPfield) and writes back to the setting record (i.e., thewaveformrecord that has theset waveformon itsINPfield). This works, but it is a bit clumsy, I think. A coworker achieves this via hardcoded record names and writing back viadb.getRecord(RECORDNAME).VAL=XYZ, but I'd prefer to avoid hard-coded record names.acalcout, but I feel like I might be missing something obvious here. (Since the waveform record lacksDOL,OMSLorOUT, I couldn't use my usual tricks to get this type of feedback working).Any help would be greatly appreciated.