On Sun, Sep 15, 2024 at 03:27 AM, Askild wrote:
Python is another possibility.
Yes. If the instrument you are using does SCPI, then it's not to hard to write some code in Python to do some basic measurements.
?
AFAIK, if you have the working GPIB hardware.
Keysight 82357B USB/GPIB Interface
or
Keysight 82350B PCI GPIB Interface
?
and have downloaded and installed?
pyVISA (Python Library for VISA), free
Keysight VISA (Virtual Instrument Software Architecture) an API for instrument control, has GPIB
?
The software might be free; but, the devil will be in the details, if you have to manually install them.
?
Here is a basic Python program get an instrument to measure voltage using SCPI (Standard Commands for Programmable Instruments) command set,if the instuments you are using supports it. Not sure the 897B does.
Any program bugs, are free, like the other software.
?
import pyvisa
# Initialize VISA Resource Manager
rm = pyvisa.ResourceManager()
# Find? instruments
instruments = rm.list_resources()
print("Available Instruments:", instruments)
# Open session to an instrument (assuming GPIB device at address 3)
instrument = rm.open_resource('GPIB0::3::INSTR')
# Write a command
instrument.write('MEASURE:VOLTAGE?')
# Read response
response = instrument.read()
print("Instrument Response:", response)
# Close? session
instrument.close()
?
You can do something similar coding in C, and compile it; but, there's way more fiddly bits to get wrong.
?
?