Skip to content

Name handling for thermistors #1

@nicholas512

Description

@nicholas512

Currently, thermistors are arranged in a nice way and we can get the thermistor names based on the channel name as in the logDAQ script:

def getChannelName(channel):
   slot = channel / 100
    k    = channel % 100 + 20 * (slot - 1)
    cable = 1 + (k-1) / 10
    return "T17-S{}C{}-{}".format(str(slot), str(cable), str(k).zfill(3))

But if one of them were to break and we were to replace it with one of the spares, this nomenclature would break down. One possibility is to introduce a file where we keep track of which thermistor is in which channel (i.e. a 2-column csv) and then use it as a lookup table to get the names.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions