Device interface #3
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Groesz.org/progpib#3
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Eventually, a standard device interface should be made available. Example would be to create a controller which provides the communication layer between the GPIB controller and device. The controller will abstract away the communication such that when the device class wants to send or receive data with the device, the device class will use e.g. "controller.send(data, gpib_addr)" and "controller.recv(gpib_addr)"
The device class will provide basic commands to communicate with the specific device. The device instance will need to have a GPIBController instance to provide the hardware communication to the device along with the specific GPIB address of the device. The class would then provide standard methods such as "measure_volt_dc" or other common sense methods depending on device.
Look into InstrumentKit to help with this. https://github.com/Galvant/InstrumentKit