A clear and functional API for BK Precision Power Supplies. Tests are done using device 1688B, no unit tests are currently present.
$ dotnet add package BK.Precision.PowerSupply.APIThe BK Power Supply API is a simple library that allows you to interact with BK Precision power supplies using .NET. This library provides convenient functions for sending commands to the power supply, receiving responses, and handling common operations.
* Send commands to set voltage, current, and other parameters.
* Receive and parse responses from the power supply.
* Simplify common operations, such as setting voltage levels and reading current values.
Dim ps As New BKPrecisionPowerSupply("COM5")
ps.SetCurrent(10).
AndThen(Function(BkPowerSupply) BkPowerSupply.SetVoltage(10)).
AndThen(Function(BKPowerSupply) BKPowerSupply.GetActualCurrent()).
Map(Function(supplyAndData) supplyAndData.result).
Inspect(Function(x) MessageBox.Show(x))