Instruction manual

B&K Precision 1785B, 1786B, 1787B, 1788 Power supply
Python Library
Table of Contents
Introduction 2
Prerequisites 2
Why a Library is Useful 3
Using the Library from Python 6
Conventions 6
Return values 6
Example 6
TimeNow() 7
TurnPSOn() 7
TurnPSOff() 7
Remote or local control 7
SetRemoteControl()
SetLocalControl()
Maximum 7
SetMaxVoltage(voltage)
Output 7
SetOutVoltage(voltage)
SetOutCurrent(voltage)
SetCommunicationAddress(address=0)
Reading 7
GetReading()
EnableLocalControl() 8
DisableLocalControl() 8
GetProductInformation() 8
Using the COM Server 9
Connect the DC load 9
Register the COM server 9
Use python to access the COM server 9
Use Visual Basic to access the COM server 10
Troubleshooting 11
All my commands are failing 11
Serial interface seems to be locked up 11
Python References 12
Appendices 13
Appendix 1: Getting and Installing Python 13
Appendix 2: Getting and Installing pyserial 13
Appendix 3: Getting and Installing pywin32 13
B&K 1785, 1786B, 1787B, 1788 Python Library 15 January 2009 Page 1 of 14

Summary of content (14 pages)