8000 configMenu prints error when saving waveform records holding zero-length strings · Issue #69 · epics-modules/autosave · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
configMenu prints error when saving waveform records holding zero-length strings #69
Open
@MarkRivers

Description

@MarkRivers

When configMenu saves a waveform record holding a string it prints an error message if the string is zero length.

*** 13VMB1:cam1:NDAttributesFile is scalar in file, but array in ioc.
*** 13VMB1:cam1:NDAttributesMacros is scalar in file, but array in ioc.
*** 13VMB1:image1:NDAttributesFile is scalar in file, but array in ioc.
*** 13VMB1:image1:NDAttributesMacros is scalar in file, but array in ioc.
*** 13VMB1:netCDF1:FilePath   is scalar in file, but array in ioc.
*** 13VMB1:netCDF1:FileName   is scalar in file, but array in ioc.
*** 13VMB1:netCDF1:FileTemplate is scalar in file, but array in ioc.
*** 13VMB1:netCDF1:NDAttributesFile is scalar in file, but array in ioc.
*** 13VMB1:netCDF1:NDAttributesMacros is scalar in file, but array in ioc.
*** 13VMB1:TIFF1:FilePath     is scalar in file, but array in ioc.
*** 13VMB1:TIFF1:FileName     is scalar in file, but array in ioc.
*** 13VMB1:TIFF1:FileTemplate is scalar in file, but array in ioc.
*** 13VMB1:TIFF1:NDAttributesFile is scalar in file, but array in ioc.
*** 13VMB1:TIFF1:NDAttributesMacros is scalar in file, but array in ioc.
*** 13VMB1:JPEG1:FilePath     is scalar in file, but array in ioc.
*** 13VMB1:JPEG1:FileName     is scalar in file, but array in ioc.
*** 13VMB1:JPEG1:FileTemplate is scalar in file, but array in ioc.

If the string contains at least 1 character then there is no error message.

@timmmooney had suggested adding a trailing $ after the PV name in the .req file. However, that does not work for waveform records holding strings, because autosave says it cannot connects to the PVs at all. That does work for record fields that are DBR_STRING and holding long strings.

asVerify.c should be fixed to recognize the case of waveform records holding zero-length strings and not treat them a scalers, but as arrays and so avoid the error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0