Skip to content

Handling write-only Feature. #14

@MatthieuDartiailh

Description

@MatthieuDartiailh

Hi,
We have already mentioned the case of write-only features for dumb instrument in the past. I just received a brand new RF signal generator which follows this paradigm even for very basic things like frequency, power, output state, etc (basically everything). Using only Action would be weird as it would mean it cannot follow the RFSigGen standard which it should follow. As I will have to interface it, I would love if we could reach a consensus about this.
The less intrusive option I can think of would be to mark the getter as being CACHE (cache being just a placeholder object) and make the Feature work as follow is the getter is CACHE :

  • return None if no cache value exists (it is the job of the user to be careful when using that instrument)
  • return the cache otherwise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions