spikesafe-python API Overview | DigitizerInfo | maximum_trigger_delay
Digitizer maximum trigger delay in microseconds
The following example demonstrates the parse_spikesafe_info function. It connects to a SpikeSafe and calls the function which then returns an object with its information.
tcp_socket = spikesafe_python.TcpSocket()
tcp_socket.open_socket(ip_address, port_number)
tcp_socket.send_scpi_command('*RST') # "*RST" - reset to a known state (does not affect "VOLT" commands)
spikesafe_info = spikesafe_python.SpikeSafeInfoParser.parse_spikesafe_info(tcp_socket) # parse the SpikeSafe information and print it to the log file
# log the SpikeSafe information. To access an attribute, use the dot operator (e.g. spikesafe_info.idn)
log.info(vars(spikesafe_info))
# log the information for each digitizer. To access an attribute, use the dot operator (e.g. digitizer.version)
for digitizer in spikesafe_info.digitizer_infos:
log.info(vars(digitizer))