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 |
|
idn
property
idn
Retrieve the identification string.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
The identification string of the device. |
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.
close
close()
Close the connection to the device.
Source code in driverlib/visa_driver.py
114 115 116 |
|
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
127 128 129 130 131 132 133 |
|
print_error
print_error()
Print eventual errors occurred.
Source code in driverlib/visa_driver.py
135 136 137 |
|
reset
reset()
Reset instrument to factory default state. Does not clear volatile memory.
Source code in driverlib/visa_driver.py
139 140 141 142 |
|
clear
clear()
Clear event register, error queue -when power is cycled-.
Source code in driverlib/visa_driver.py
144 145 146 147 |
|
lookup_resources
lookup_resources()
Look for all the available resources.
Source code in driverlib/visa_driver.py
149 150 151 152 153 154 155 156 157 158 159 160 |
|
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 |
|
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
134 135 136 137 138 139 140 141 142 143 144 |
|
get_voltage
get_voltage()
Get the output voltage level.
Source code in driverlib/yokogawa/yokogawa_gs200.py
148 149 150 |
|
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
152 153 154 155 156 157 158 |
|
get_current
get_current()
Get the output current level.
Source code in driverlib/yokogawa/yokogawa_gs200.py
162 163 164 |
|
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
166 167 168 169 170 171 172 |
|
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
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
|
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
206 207 208 209 210 211 212 213 214 215 216 217 218 |
|
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
222 223 224 225 226 227 228 229 230 231 232 233 |
|