PyICe.visa_wrappers¶
VISA Emulation Layer¶
Interface wrappers to use various interfaces as if they were VISA resources without requiring an installed VISA library. Facilitates seamless transition between physical inrefaces and operating systems.
Classes
rl1009_visa_wrapper_dll ([GPIBAddress, timeout]) |
|
rl1009_visa_wrapper_generic () |
|
rl1009_visa_wrapper_serial ([GPIBAddress, ...]) |
|
visa_interface (address[, timeout]) |
agilent visa strips trailing termination character, but NI VISA seems to leave them in response. |
visa_wrapper (address[, timeout]) |
|
visa_wrapper_keithley_kxci (ip_address, port) |
|
visa_wrapper_serial (address[, timeout, baudrate]) |
|
visa_wrapper_tcp (ip_address, port[, timeout]) |
|
visa_wrapper_telnet (ip_address, port[, timeout]) |
|
visa_wrapper_vxi11 (address[, timeout]) |
Exceptions
visaWrapperException |
-
class
PyICe.visa_wrappers.
visa_interface
(address, timeout=5)[source]¶ Bases:
PyICe.visa_wrappers.visa_wrapper
agilent visa strips trailing termination character, but NI VISA seems to leave them in response.
-
ask_for_values_binary
(message, format_str='B', byte_order='=', terminationCharacter='')¶ Follows Definite Length Arbitrary Block format ie ASCII header ‘#<heder_bytes_following><data_bytes_following><data0>...<dataN> eg #40003<byte0><byte1><byte2><byte3> format_str and byte_order are passed to struct library for to set word boundaries for unpacking and conversion to numeric types https://docs.python.org/2/library/struct.html#format-strings
-
read_values_binary
(format_str='=B', byte_order='=', terminationCharacter='')¶ Follows Definite Length Arbitrary Block format ie ASCII header ‘#<heder_bytes_following><data_bytes_following><data0>...<dataN> eg #40003<byte0><byte1><byte2><byte3> format_str and byte_order are passed to struct library for to set word boundaries for unpacking and conversion to numeric types https://docs.python.org/2/library/struct.html#format-strings
-
resync
()¶ flush buffers to resync after communication fault - usb-serial problem
-