1)This manual is valid for the following Model and associated serial numbers:
MODELSERIAL NO.REV. NO.
2)A Change Page may be included at the end of the manual. All applicable changes and
revision number changes are documented with reference to the equipment serial numbers. Before using this Instruction Manual, check your equipment serial number to identify
your model. If in doubt, contact your nearest Kepco Representative, or the Kepco Documentation Office in New York, (718) 461-7000, requesting the correct revision for your particular model and serial number.
3)The contents of this manual are protected by copyright. Reproduction of any part can be
made only with the specific written permission of Kepco, Inc.
KEPCO, INC. ! 131-38 SANFORD AVENUE ! FLUSHING, NY. 11352 U.S.A. ! TEL (718) 461-7000 ! FAX (718) 767-1102
email: hq@kepcopower.com ! World Wide Web: http://www.kepcopower.com
THE POWER SUPPLIER™
BHK-MG 200 WATT (FULL RACK) AND 40 WATT (1/2 RACK)
VISA INSTRUMENT DRIVER
The VISA instrument driver supplied with the BHK-MG 200 Watt (Full Rack) and 40 Watt (1/2 Rack) Power
Supply is provided to simplify programming with a VISA compatible GPIB controller. The latest driver can
be downloaded from the Kepco website (http://www.kepcopower.com/drivers.htm). The driver includes the
source code (C) for all VISA functions (kp_BHK.c).
Since the software drivers supplied by Kepco are VISA compliant, they require the installation of the proper
VISA driver from your GPIB card supplier. The Kepco website (http://www.kepcopower.com/drivers.htm)
provides links to various vendor sites for these drivers.
1. VISA INSTRUMENT DRIVER FUNCTIONS
Kepco’s BHK-MG VISA instrument driver provides programming support for Kepco’s BHK-MG 40 Watt (1/2
Rack) Series Power Supplies (VISA I/O). It contains functions for opening, configuring, taking measurements from, test, calibration and closing the instrument. To successfully use this module, the instrument
must be connected to the GPIB and the GPIB address supplied to the initialize function must match the
GPIB address of the instrument.
Table 1 lists the functions that are available.
TABLE 1. BHK-MG VISA DRIVER FUNCTIONS
PurposeFunction NameDescription
INITIALIZE FUNCTION
InitializeKpBhk_initInitializes the instrument and sets it to a default configuration.
APPLICATION FUNCTIONS — This class of functions contains high-level test and measurement routines. These functions call
other instrument driver functions to configure, start, and get readings from the instrument.
Set and MeasureKpBhk_ApplicSetMeas Used to either set and read back, or just read back the output voltage,
current and operating mode of the power supply
Get/Set Memory ValueKpBhk_GetSetListValueThis function can either get or set the values stored in any one of the 40
CONFIGURATION FUNCTIONS — This class of functions configures the instrument by setting system configuration parameters.
Get Current RangeKpBhk_getCurrRangeFULL RACK units only. Gets the current range:
Set Current RangeKpBhk_setCurrRangeFULL RACK units only. Sets the current range:
Set Maximum Limit
Val ue
Get Maximum Limit
Val ue
Get Minimum or Maximum Value
KpBhk_SetMaxLimValueSets the temporary voltage limit or current limit of the power supply.
KpBhk_GetMaxLimValueGets the maximum limit value of the power supply.
KpBhk_GetMinMaxValueGets the minimum or the maximum output voltage, output current,
available memory locations. Six parameter values can be stored in any
one of the 40 locations: voltage level, current level, overvoltage level,
overcurrent level, duration of the setting (if used in a program) and next
memory address (if used in a program). Depending on the slide selection position, and the value of get/set switch, one of these values is
read or set. The values are checked against the maximum acceptable
values for the corresponding power supply.
1 = High range, 0 = Low range
1 = High range, 0 = Low range
The limit reduces the output range of the power supply. For example,
the output voltage range of a 0 to 10V power supply can be limited to
the range of 0 to 5.25V by setting the voltage limit to 5.25V.
overvoltage level, or overcurrent level of the power supply depending
on the min_max switch and slide selection position.
BHK-MG-VISA 0109063
TABLE 1. BHK-MG VISA DRIVER FUNCTIONS (CONTINUED)
PurposeFunction NameDescription
Set Trigger Voltage and
Current
Set Trigger ValueKpBhk_SetTrigValueSets the trigger voltage or trigger current level, depending on the switch
Get Trigger ValueKpBhk_GetTrigValueGets the trigger voltage or the trigger current level, depending on the
Set Overvoltage and
Overcurrent
Set Protection DelayKpBhk_setProtDelaySets the protection delay: the delay between the moment the output
Get Protection DelayKpBhk_getProtDelayDisplays the protection delay count for the power supply. A count of 30
ACTION/STATUS FUNCTIONS — This class of functions executes commands and queries. It also provides functions which allow
the user to determine the current status of the instrument.
Set Voltage and CurrentKpBhk_Set_Volt_CurrSets the output voltage and current at the same time.
Set ValueKpBhk_SetValueSets the output voltage, the output current, the overvoltage level, or the
Get ValueKpBhk_GetValueGets the output voltage, the output current, the overvoltage level, or the
TriggerKpBhk_TrigTriggers the instrument once. The output will go to the trigger voltage
Measure Output ValueKpBhk_MeasValueMeasures the value of output voltage or current depending on the
Get Source ModeKpBhk_GetSourceModeGets the operating mode of the power supply.
Output On/OffKpBhk_OutputOnOffSets the output on or off.
Get Output StatusKpBhk_getOutputStateReturns the output status (on or off).
Get Current RangeKpBhk_getCurrRangeGets the operating current range of the power supply.
Set Current RangeKpBhk_setCurrRangeSets the operating current range of the power supply
Abort MeasurementKpBhk_abortMeasSends the abort command.
BeepKpBhk_beepThe selected BHK-MG power supply will emit a beep.
DATA FUNCTIONS — This class of functions transfers data to or from the instrument.
Questionable DataKpBhk_StatQuesTests for questionable data, then gets the condition.
Run/Stop LIST ProgramKpBhk_ProgSends a RUN or STOP LIST program command.
Get Status of LIST Program
Send Direction of LIST
Program
Send Loop Count of
LIST Program
KpBhk_SetTrig_Volt_CurrSets the trigger voltage and trigger current at the same time
position.
switch position.
KpBhk_Set_OVvolt_OVcurrSets both the overvoltage and overcurrent values.
voltage and current are changed and the moment the overvoltage and
overcurrent protections are enabled.
represent ~ 1 second. The protection delay is the delay between the
moment the output voltage and current are changed and the moment
the overvoltage and overcurrent protections are enabled.
overcurrent level of the power supply, depending on the slide selection
position. The values are checked against the maximum acceptable values for the corresponding power supply.
overcurrent level of the power supply depending on slide selection
position.
and current values.
switch position.
KpBhk_Prog_StatGets status of program: 0 = stopped, 1 = running
KpBhk_Prog_DirSends direction to run LIST program (UP or DOWN). Does NOT apply
to 40-step LIST programs available from front panel.
KpBhk_Prog_CountSends loop count value - how many times the LIST program will run.
Value of 0 = run continuous. Does NOT apply to 40-step LIST programs available from front panel.
4BHK-MG-VISA 010906
TABLE 1. BHK-MG VISA DRIVER FUNCTIONS (CONTINUED)
PurposeFunction NameDescription
Send Loop Count Skip
Value of LIST Program
Save/Recall SettingsKpBhk_SaveRecSetSaves the current settings to the selected memory location or restores
UTILITY FUNCTIONS — This class of functions provides lower level functions to communicate with the instrument and to change
instrument parameters.
Identify Power SupplyKpBhk_identifyReturns the full message returned by the power supply to the *IDN?
Revision QueryKpBhk_RevisionQueryReturns the revision numbers of the instrument driver and instrument
Model QueryKpBhk_ModelQueryReturn the model number of the BHK-MG power supply.
Serial Number QueryKpBhk_SerialnQueryReturns the serial number of the BHK-MG power supply. The serial
Query SCPI VersionKpBhk_GetScpiVersionReturns the power supply answer to the Query SCPI Version com-
Set/Reset Keypad LockKpBhk_setResetKeybLockLocks or unlocks keypad operation. Used to prevent changing the set-
Keypad Lock StatusKpBhk_keybLockStatReturn the status of the local keypad access: 0 if local access enabled;
Display TextKpBhk_displayConfigures the front panel display of the instrument. In normal mode
Get Display TextKpBhk_getDisplayGets the string which is displayed on the second line of the display.
Get Display ContrastKpBhk_getContrastGets the contrast value of the front panel display of the instrument
Set Display ContrastKpBhk_setContrastConfigures the contrast of front panel display of the instrument (value
Write To InstrumentKpBhk_writeInstrDataThis function writes commands and queries to the instrument to modify
Read Instrument DataKpBhk_readInstrDataThis function reads data from the instrument's output buffer and returns
ResetKpBhk_psResetResets the instrument to a known state and sends initialization com-
Self-TestKpBhk_selfTestRuns the instrument's self test routine and returns the test result(s).
Error-QueryKpBhk_errorQueryReads an error code from the instrument's error queue.
Error MessageKpBhk_errorMessageTakes the Status Code returned by the instrument driver functions,
KpBhk_Prog_Count_SkipSends skip value used after first pass through LIST program. Repre-
sents loop-back point from which program will be repeated after the
first pass through.
previously stored settings from a memory location. The memory location range is from 1 to 40.
query. This message contains four fields: manufacturer, power supply
type, serial number and firmware version.
firmware version from the *idn? query. This instrument driver's Revision
Number is "Rev 1.0, 9/95, CVI 3.1" and the BHK-MG firmware version
is Firmware Version "1.0". This data is necessary when requesting
technical support.
number is extracted from the answer to the *idn? query.
mand. Checks the Standard Commands for Programmable Instruments (SCPI) language version.
tings of the power supply from the local keypad.
1 if local access is disabled.
the values measured at the output of the power supply are displayed.
In text mode a user defined string can be displayed on the second row
of the display.
(between 0.1 and 0.9).
between 0.1 and 0.9).
parameters and query device settings.
it to the specified variable in memory. Because the instrument may
return both numeric and text data in response to queries, this function
returns the data in string format. NOTE: If valid data is not available at
the instrument's output buffer when this function is called, the instrument will hang up and the function will not return until it times out. If the
time-out is disabled,` this function will hang indefinitely and it may be
necessary to reboot the computer to break out.
mands to the instrument.
interprets it and returns it as a user readable string.
BHK-MG-VISA 0109065
Loading...
+ 11 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.