Instruments

Instruments

# ICDataServer.newinstrumentFunction.

newinstrument(dsn, alias; make="", model="", serialnum="", kind="",
    hw_server="", protocol="", ins_addr="")

Create a new instrument named alias in the instruments table.

source

# ICDataServer.updateinstrumentFunction.

updateinstrument(dsn, alias; kwargs...)

Update any of the fields for an instrument named alias. Possible keyword arguments listed in documentation for ICDataServer.newinstrument.

source

# ICDataServer.deleteinstrumentFunction.

deleteinstrument(dsn, alias)

Delete instrument named alias from the instruments table.

source

# ICDataServer.listinstrumentsFunction.

listinstruments(dsn)

List instruments in the instruments table.

source

Constraints on the instruments table

To enforce consistent conventions in the instruments table, there are some supporting tables that list the allowed values for an associated column in the instruments table.

instrumentkinds table

This table, consisting of one column kind, lists the different kinds of instruments that may be used in a measurement. More values can be added manually via a database query or via the instrumentkinds.json setup file to accommodate new instrument types.