Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6f1915c
simulation.assembly: run other testbenches after the main testbench.
whitequark May 18, 2025
8151245
applet.interface.gpib_command: new applet for GPIB
AaronJackson Apr 25, 2025
ae66a66
Small things prior to some fixes
AaronJackson May 5, 2025
537ca56
scratch
AaronJackson May 5, 2025
5be7dc6
kinda working with fifo control
AaronJackson May 5, 2025
a192389
invert bus
AaronJackson May 6, 2025
74580c3
enums for commands / message types
AaronJackson May 6, 2025
322a8b1
Fix pin inverts
AaronJackson May 6, 2025
bd6877f
every other run fails but otherwise it's working
AaronJackson May 6, 2025
7a837d8
slightly improved and still working
AaronJackson May 7, 2025
cd6a307
FFSync
AaronJackson May 7, 2025
3b9e5ea
tidy
AaronJackson May 7, 2025
bc75594
trying structlayout
AaronJackson May 7, 2025
82b742e
StructLayout working
AaronJackson May 7, 2025
8a525b3
amaranth enums
AaronJackson May 7, 2025
05b588b
merge GPIBBus and GPIBSubtarget
AaronJackson May 7, 2025
16de813
Add interface for read/write
AaronJackson May 7, 2025
224494c
rename command -> controller
AaronJackson May 7, 2025
b0c5d93
oops
AaronJackson May 7, 2025
954e238
should also be an enum.Enum
AaronJackson May 7, 2025
37087f2
oops again
AaronJackson May 7, 2025
2bb55b6
interface api
AaronJackson May 7, 2025
38c7384
minor receive optimisation
AaronJackson May 8, 2025
a02c196
Example gpib run script
AaronJackson May 8, 2025
8d6f1b3
very messy and broken - v2 applet attempt
AaronJackson May 18, 2025
f2d69fa
working with hardware again
AaronJackson May 18, 2025
47b1dac
status register
AaronJackson May 18, 2025
4cfdf0a
test stuff
AaronJackson May 18, 2025
da54bf9
wip
AaronJackson May 19, 2025
3527704
hmm
AaronJackson May 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions examples/gpib-tektronix-hardcopy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"""
An example script which can be used with run-script.

This script will request a screen capture from a Tektronix
oscilloscope.

glasgow script gpib-tektronix-hardcopy.py gpib-controller -V5

"""

address = 10

# await iface.send_to(address, b"HARDCOPY:FORMAT EPSCOLOR")
# await iface.send_to(address, b"HARDCOPY:FORMAT BMPCOLOR")
await iface.send_to(address, b"HARDCOPY:FORMAT TIFF")

await iface.send_to(address, b"HARDCOPY:COMPRESSION 0")
await iface.send_to(address, b"HARDCOPY:LAYOUT LAND")
await iface.send_to(address, b"HARDCOPY:PORT GPIB")
await iface.send_to(address, b"HARDCOPY START")

with open('hardcopy.tiff', 'wb') as f:
async for b in iface.iter_from(address):
f.write(b)
Loading
Loading