Skip to content

Instantly share code, notes, and snippets.

@GeoSpark
GeoSpark / scpi_tcp.py
Created March 28, 2015 12:31
Python script to send commands to a Rigol scope (or any LXI/SCPI instrument) from first principles.
from zeroconf import *
import socket
import time
import requests
from lxml import etree
"""
Basic steps for a Rigol DS1000Z-series scope
--------------------------------------------
@GeoSpark
GeoSpark / xkcd1930.gml
Created December 19, 2017 00:56
A GraphML representation of XKCD comic no. 1930, including alt-text. https://xkcd.com/1930/
<?xml version='1.0' encoding='utf-8'?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<key attr.name="text" attr.type="string" for="node" id="d0" />
<graph edgedefault="directed">
<node id="1">
<data key="d0">Did you know that</data>
</node>
<node id="2">
<data key="d0">the</data>
</node>