_package_command()#

Instrument._package_command(
channel: str,
data: float | bool | str,
timestamp: int,
**kwargs,
) → Command[source]#

Build a single-channel Command namespaced under this instrument.

The published channel key is {self.name}.{channel}. The caller writes the full descriptor including any .cmd suffix, so the literal published name appears at the call site (e.g. f"ch{channel}.voltage.cmd").