Products > Test Equipment
open source GPIB adapter
dazz1:
--- Quote from: caiser01 on December 16, 2023, 09:51:10 pm ---
Just for giggles, try adding this line after the open_resource line:
--- Code: ---multimeter.write_termination = '\n'
--- End code ---
--- End quote ---
That worked. Thanks.
The code displayed:
--- Code: --->python gpib_test_HP3478A.py
Simple GPIB test for HP3478A multimeter
Show the list of Resources
('USB0::0x03EB::0x2065::GPIB_23_24238323232351C01171::INSTR', 'ASRL1::INSTR')
Opening the Meter
Reading the DC volts
-1.6431
-1.6427
-1.6425
...
--- End code ---
So that confirms the adapter is 100% working.
caiser01:
--- Quote from: dazz1 on December 16, 2023, 10:22:42 pm ---So that confirms the adapter is 100% working.
--- End quote ---
Took a while to get here but that's great!
Just had a look at xyphro's GitHub and it sounds as if he's been busy optimizing the firmware. Should be a nice update when he does his next release.
dazz1:
--- Quote from: caiser01 on December 16, 2023, 11:32:23 pm ---Just had a look at xyphro's GitHub and it sounds as if he's been busy optimizing the firmware. Should be a nice update when he does his next release.
--- End quote ---
This adapter is a software project with some hardware attached. The quality of this type of project is largely defined by the software. Optimizing the software can only be a good thing.
There might be an improvement to be gained by simply altering the compiler settings. By default, the MAKE file compiler settings are set to create the smallest firmware file size. Also the slowest to execute. Changing compiler setting to increase the file size should be a zero effort action to make a small increase in speed.
When the compiler is set to build a large file, it replaces call to functions with the code of the function. Code is repeated. It is very inefficient on code size, but also fast. There is no reason to keep the file size any smaller than 32k on the ATmega32U.
dazz1:
--- Quote from: caiser01 on December 16, 2023, 11:32:23 pm ---
--- Quote from: dazz1 on December 16, 2023, 10:22:42 pm ---So that confirms the adapter is 100% working.
--- End quote ---
Took a while to get here but that's great!
--- End quote ---
Now I am working on using the GPIB for my WaveTek 2520 RF Signal Generator. I have GPIB comms so the instrument is OK but I need to figure things out to get all the commands working.
At present, I am using my deck top PC, which is no where near my workshop.
I would like to get my little old Linux Asus eeePC running pyvisa. What do you suggest, and in what order should I install? NI, R&S ?
alm:
--- Quote from: dazz1 on December 17, 2023, 09:52:45 am ---I would like to get my little old Linux Asus eeePC running pyvisa. What do you suggest, and in what order should I install? NI, R&S ?
--- End quote ---
I found installing a commercial VISA stack a pain on Linux. Especially maintaining it through OS upgrades. I'd also research what hardware they support. I know NI-VISA doesn't support NI GPIB-USB devices on Linux kernel versions from the last 15 years or so. I don't know about USBTMC.
I would use PyVISA-py as backend. This integrates much better with Linux and doesn't require any kernel modules or daemons to run.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version