Hi EPICS community,
Does anybody have an example of how to write a character string to a waveform record using a scalcout record? The scalcout documentation has some references to array operators, but it isn't clear how to use these
to create a character string for a waveform record.
I'm trying to do this for the following reason.
The netCDF1 plugin for the DXP-XMAP uses a waveform record to store the filename (to go beyond the 40 char limit I presume), and I want to automatically set this filename based on the file name for the MDA file so
that the user can link the netCDF1 files with the MDA file. My first guess was to try to just set the VAL field from a scalcout record using its OUT field, but this doesn't work. It just clears the waveform record VAL. Here is the scalcout record I have so
far. I can make this work to set the DESC field of the netCDF1:FileName record, but not the VAL field. I don't mind limiting the VAL array to 40 characters.
record(scalcout, "$(P)PreFlyScan2Calc3") {
field(DESC, "PreFlyScan2Calc 3")
field(DISV, "0")
field(SDIS, "$(P)userStringCalcEnable.VAL NPP MS")
field(INAA,"$(P)saveData_baseName.VAL")
field(INBB,"$(P)saveData_scanNumber.VAL")
field(CALC, "AA + '_' + BB")
field(OUT,"$(X)netCDF1:FileName CA")
}
Thanks,
Jay Steele
Xradia Corporation
The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed. Any use of this email for any other purpose is prohibited. If you have received this email in error,
please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.
|