These two functions return the short name of a scan device or detector from a device or detector code.