Skip to content

GUI: Blocks should be limited in length #3647

@John-Holt-Tessella

Description

@John-Holt-Tessella

If the block name is too long it does not get passed correctly to addToSet. It gets truncated in the run control settings file:

[2018-10-09 15:30:08] dbLoadRecords("C:/Instrument/Apps/EPICS/support/RunControl/master/db/runcontrol.db","P=TE:NDW1032:,PV=TE:NDW1032:CS:SB:rcptt_d5436e501bad4797b281a0ee")

[2018-10-09 15:30:08] Can't set "TE:NDW1032:CS:SB:rcptt_d5436e501bad4797b281a0ee:RC:_SEQ.STR2" to "TE:NDW1032:CS:SB:rcptt_d5436e501bad4797b281a0ee"

If it is much too long then you get:

[2018-10-09 16:50:54] Can't create record "TE:NDW1798:CS:SB:a23456789012345678901234567890123456789012345678901234567890123456789012345678901245678901234568789012345678901234567801234567865604:RC:HIGH" of type "ao"
  1. Find out what the limit is for this and place a restriction in the gui configuration.
  2. Write a test which checks that the run control works for long pv names.
  3. Check all current configurations for blocknames that are too long.

Work out what addToSet (EPICS\support\asubFunctions\master\asubFunctionsApp\src\setFunctions.c) does and add documetnations to function and to records (record(aSub, "$(PV):RC:_OUT:DO"), record(sseq, "$(PV):RC:_SEQ") that calls it (in EPICS\support\RunControl\master\db\runcontrol.db).

See #2773 for limit in archiver

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions