Yokogawa GS200
Bases: VisaDriver
A driver for controlling the Yokogawa GS200 source measure unit via VISA interface.
This class provides an interface to control and query the Yokogawa GS200, including setting its operation mode, output state, output range, and output level. The device can operate in either current or voltage mode.
Usage:
from driverlib.yokogawa import YokogawaGS200
yoko = YokogawaGS200("address")
yoko.output = True
yoko.voltage = 1.0
Initialize the YokogawaGS200 object with the specified resource location and mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
resource_location
|
str
|
The VISA resource name used to connect to the device. |
required |
mode
|
Literal['current', 'voltage']
|
The initial operation mode of the GS200. Defaults to 'voltage'. |
'voltage'
|
max_level
|
Optional[float]
|
The maximum voltage/current value. Defaults to None. |
None
|
min_level
|
Optional[float]
|
The minimum voltage/current value. Defaults to None. |
None
|
Source code in driverlib/yokogawa/yokogawa_gs200.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
min_level
property
writable
min_level
Get or set the minimum voltage/current value.
max_level
property
writable
max_level
Get or set the maximum voltage value.
idn
property
idn
Retrieve the identification string.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The identification string of the device. |
set_limits
set_limits(min_level, max_level)
Set the minimum and maximum voltage/current values.
Source code in driverlib/yokogawa/yokogawa_gs200.py
73 74 75 76 |
|
get_output
get_output()
Query the output state of the Yokogawa GS200.
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if the output is on, False otherwise. |
Source code in driverlib/yokogawa/yokogawa_gs200.py
78 79 80 81 82 83 84 |
|
set_output
set_output(value)
Set the output state of the Yokogawa GS200.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
ONOFF_TYPE
|
The desired output state. True to turn on the output, False to turn it off. |
required |
Source code in driverlib/yokogawa/yokogawa_gs200.py
86 87 88 89 90 91 92 93 94 95 |
|
get_range
get_range()
Query the output range of the Yokogawa GS200.
Returns:
Name | Type | Description |
---|---|---|
int |
float
|
The current output range setting of the device. |
Source code in driverlib/yokogawa/yokogawa_gs200.py
99 100 101 102 103 104 105 |
|
set_range
set_range(value)
Set the output range of the Yokogawa GS200.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
float
|
The desired output range. |
required |
Source code in driverlib/yokogawa/yokogawa_gs200.py
107 108 109 110 111 112 113 |
|
set_level
set_level(value, check_mode=None)
Set the output level of the Yokogawa GS200.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
float
|
The desired output level. |
required |
Source code in driverlib/yokogawa/yokogawa_gs200.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
get_level
get_level(check_mode=None)
Query the output level of the Yokogawa GS200.
Returns:
Name | Type | Description |
---|---|---|
float |
float
|
The current output level of the device. |
Source code in driverlib/yokogawa/yokogawa_gs200.py
138 139 140 141 142 143 144 145 146 147 148 |
|
get_voltage
get_voltage()
Get the output voltage level.
Source code in driverlib/yokogawa/yokogawa_gs200.py
152 153 154 |
|
set_voltage
set_voltage(value)
Set the output voltage level.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
float
|
The desired output voltage level. |
required |
Source code in driverlib/yokogawa/yokogawa_gs200.py
156 157 158 159 160 161 162 |
|
get_current
get_current()
Get the output current level.
Source code in driverlib/yokogawa/yokogawa_gs200.py
166 167 168 |
|
set_current
set_current(value)
Set the output current level.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
float
|
The desired output current level. |
required |
Source code in driverlib/yokogawa/yokogawa_gs200.py
170 171 172 173 174 175 176 |
|
set_voltage_safely
set_voltage_safely(value, step=None)
Set the output voltage level safely.
This method gradually changes the output voltage level from the current level to the desired level with a specified step size.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
float
|
The desired output voltage level. |
required |
step
|
float
|
The step size for changing the voltage level. Defaults to self.default_safety_step. |
None
|
Source code in driverlib/yokogawa/yokogawa_gs200.py
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
|
set_output_safely
set_output_safely(value)
Set the output state safely.
This method sets the voltage to 0 before setting the output to True.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
ONOFF_TYPE
|
The desired output state. True to turn on the output, False to turn it off. |
required |
Source code in driverlib/yokogawa/yokogawa_gs200.py
212 213 214 215 216 217 218 219 220 221 222 223 224 |
|
set_output_voltage_safely
set_output_voltage_safely(value, step=None)
Set the output voltage level safely.
This method sets the output state to True and then gradually changes the output voltage level from the current level to the desired level with a specified step size.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
float
|
The desired output voltage level. |
required |
step
|
float
|
The step size for changing the voltage level. Defaults to None. |
None
|
Source code in driverlib/yokogawa/yokogawa_gs200.py
228 229 230 231 232 233 234 235 236 237 238 239 |
|
close
close()
Close the connection to the device.
Source code in driverlib/visa_driver.py
64 65 66 |
|
get_error
get_error()
Retrieve the error message from the device.
Returns:
Name | Type | Description |
---|---|---|
str |
The error message. |
Source code in driverlib/visa_driver.py
77 78 79 80 81 82 83 |
|
print_error
print_error()
Print eventual errors occurred.
Source code in driverlib/visa_driver.py
85 86 87 |
|
reset
reset()
Reset instrument to factory default state. Does not clear volatile memory.
Source code in driverlib/visa_driver.py
89 90 91 92 |
|
clear
clear()
Clear event register, error queue -when power is cycled-.
Source code in driverlib/visa_driver.py
94 95 96 97 |
|