![KEPCO KLR SERIES Скачать руководство пользователя страница 49](http://html1.mh-extra.com/html/kepco/klr-series/klr-series_developers-manual_1956489049.webp)
KLR-DEV 060713
4-7
4.5.1
INITIALIZATION FUNCTION
The initialization function use three subvi’s:
•
KepcoDCPWR initialize
- Initializes the driver.
•
KepcoDCPWR Query Voltage Limit
- Verifies the limit model voltage setting.
•
KepcoDCPWR Configure Voltage Mode
- Sets Mode to fixed, thereby stopping list exe-
cution.
The initialization function uses five inputs:
• Recognize device - T-F (True-false) input. If true, IDN string is parsed, looking for proper
model (KLR). If false, model is automatically set to KLR for simulation mode.
• Resource string - The VISA resource string, e.g., GPIB::6::INSTR
• ID Query - T-F input. If true, allows the unit to be identified by sending *IDN query. If
false, program enters simulation mode and no commands are actually sent to the power
supply.
• Error in - Described in Table 4-2.
• Reset device - T-F input. If true, sends *RST to unit which turns the output off, sets volt-
age to zero and current to minimum, and disables execution of a programmed list.
The initialization function provides three outputs:
• Visa Session - a handle defining the connection.
• Model - a string providing the model type for the functions.
• Error out - If the function did not fail, this is a 0.
The first block of Figure 4-6,
KepcoDCPWR initialize
function, performs the open, creating the
connection between the LabView program and the power supply using the VISA.dll supplied
with LabView. The
KepcoDCPWR initialize
function has two optional settings: reset unit and
identify unit. The reset unit option sends *RST to the unit which sets the output to 0 volts, mini-
mum current, turns the output off, and stops list execution. The identify unit option sends an
*IDN query to the power supply.
The recognize unit utility function parses the response to determine the proper model number
output. If the identify unit flag is not set, the MODEL OUT of the initialize function reports Stan-
dard as the power supply type. The Standard model is a unit that only supports setting voltage,
current and output on/off, and performing measurements; all other functions are bypassed. The
function
KepcoDCPWR initialize with options
(not used in the example)
uses
KepcoDCPWR ini-
tialize
except that Kepco-recommended options are preset: the reset and identify flags set.
All subsequent functions have at least two inputs: VISA session and Model In. VISA session is
the output of
viOpen
. Model In is a string; for the KLR the string is
KLR
.
The second block,
KepcoDCPWR Query Voltage Limit
, is needed to verify the limit model set-
tings. It is recommended that the response from this block be checked to insure that the power
supply is configured to supply the voltage and current needed. For example, if the limit model for
a KLR 75-32 was set to 36 Volts, 32 Amperes, the response will be 36 to this query, indicating
that the program will not respond to a command to set the output to 50 Volts.
Содержание KLR SERIES
Страница 2: ......
Страница 10: ......
Страница 42: ......
Страница 58: ...4 16 KLR DEV 060713 FIGURE 4 10 FUNCTION GENERATOR PANEL FIGURE 4 11 CONFIGURE User Sequence vi BLOCK DIAGRAM ...
Страница 59: ......
Страница 60: ......
Страница 61: ...FIGURE 4 13 FUNCTION GE ...
Страница 62: ......
Страница 86: ......
Страница 90: ......