Use PyVISA to Program Test Tools with Python - Workbench Wednesdays

  Рет қаралды 41,537

element14 presents

element14 presents

Күн бұрын

Пікірлер: 43
@vk3xe
@vk3xe 2 жыл бұрын
I've been a developer for a long time, but only started tinkering with electronics recently, and this was a great introduction for me. Didn't know about pyvisa at all, you've saved me a serious chunk of time
@wb7ond
@wb7ond Жыл бұрын
Great video, I remember fooling with that GPib, I used visual basic for all my automation... Send the SCPI strings via the GPib interface card. We even had radios that responded to remote commands via serial port, so the test set and the radio worked together for basic tests, and build a file showing the go and no-go values. Back in the day of the PCI bus cards, I had a GPib card that would interface into the HP equipment... I really enjoy your videos, well made, to the point and don't waste my time. I have to run them a bit slower at times, you talk very fast... Thanks again.
@georgetroulis
@georgetroulis 2 жыл бұрын
"So now, let's teach the intern about getting replaced by automation" 😂😂
@albertogarciaengineer3053
@albertogarciaengineer3053 2 жыл бұрын
Thank you very much for making this video! It's very useful. Keep it up! EDIT: Also, it feels really good to have questions addressed in this detailed and easy to understand manner such as the ones I had in the Bode video. Thank you again!
@christophervillanti1417
@christophervillanti1417 Жыл бұрын
I have a room full of GPIB instruments that I've always wanted to automate. This is a great avenue to explore!
@philnewman7613
@philnewman7613 Жыл бұрын
Thanks a lot, great overview!! Although I am on Windows and hope to get it running there as well! :) Love your humor btw.
@TheMoeP
@TheMoeP 2 жыл бұрын
I had to do this in college with keysight instrumentation connected to windows and it was a pain in the butt to configure, it was all LAN but the school's network was terrible so there was always a problem and only a few stations could get it to work. When we did get it to work we used MATLAB and the coding was pretty straightforward, the professor would make us do extra so we would need to export the results and open them on Excel and create a graph (I know useless). I'm starting a job that requires me to test all day I can confirm SCPI is super useful
@rafaelraimer
@rafaelraimer 2 жыл бұрын
5:40 (...)" about 500 years ago Hewlett Packard was best known as a test and measurement company "(...) 😀
@smart6821
@smart6821 2 жыл бұрын
500 years ago, what is the test and measurement equipment
@Workshopshed
@Workshopshed 2 жыл бұрын
I did have a HP function generator that was almost this old. It was big and heavy but lovely construction, had to get rid of it before a move unfortunately.
@jarongaus
@jarongaus 7 ай бұрын
Fantastic instructions. It's a crazy world out there !!!
@MakenModify
@MakenModify 2 жыл бұрын
This was really helpful. In a company I worked we had all the stuff from Ni, that made it easy and expensive. Atm I try to get all the test automation stuff done with Python. I looked into Visa in the past but it was all quite confusing. This video helped a bunch, thank you very much. 😃👍
@CraigPetersen12f36b
@CraigPetersen12f36b Жыл бұрын
I have a pretty sizable HP instrument collection and I have most of them all connected via the HP-IB bus to my instrument controller. Most of the software I have been using has been on Windows, some of the software I use is free such as GPIB tools, Timelab and Phase Noise, the other is a commercial product called HTBasic. The last couple of months I have been dabbling in Python to control some of my instruments over the GPIB bus with the help of Chat GPT, and so far it's been quite some fun. While I do not have any of these instruments connected via any spare RS-232 ports your video was very informative.
@KrantzThe
@KrantzThe Ай бұрын
I'm the process to do some Python UI for my old agilent/hp instruments too. Do you happen to have some code to share? Otherwise I'll just reinvent the wheel, wouldn't be the first time :)
@DanPudvay
@DanPudvay 11 күн бұрын
How do you select which version of visa driver to use? I'm using keysight as my Visa driver. When I installed my keysight scope software, it installed both 32 bit and 64 bit .dll as visa drivers. I'm creating the VISA resource using the Keysight connection manager. The first instrument I'm trying to connect is a BKPrecision power supply. My power supply shows up in the Keysight connection manager and allows me to create an alias. I can poll the IDN via the connection manager, but when I call list resources in python, I don't see the instrument. Python is defaulting to the visa32.dll and I suspect Keysight connection manager is creating the instrument using the visa64.dll, but I'm not sure and want to switch back and forth. I'm not sure the calling convention of the resource manager
@bennguyen1313
@bennguyen1313 10 күн бұрын
I recently needed to control a piece of test-equipment (keysight e-load) which has an rs-232 port.. so I figured I'd use python (pip install pyserial, import serial).. or just run a terminal app like realterm. However, looking at the documentation, they use SCPI and VISA. Do you have any thoughts on what the difference is between using pyvisa to get the COM port resource, and accessing it via pyvisa versus just sending the same ascii data via pyserial / realterm?
@bald_engineer
@bald_engineer 7 күн бұрын
VISA handles the low-level communication for you. So it is a little easier to send/receive. The real benefit is if you decide to use another interface in the future. Then all you do is change the connection method and everything else stays the same.
@garthhowe297
@garthhowe297 2 жыл бұрын
Earlier this year I tried to implement my Tier 1 vendors control software, and failed. I then went the Python route, and it worked pretty easily. I did need to use delays as well to get reliable responses.
@Berred
@Berred 4 ай бұрын
Great! It helped me alot, thanks.
@brucetouzel6484
@brucetouzel6484 Жыл бұрын
is it possible to mirror test equipment display onto a monitor by simply using a USB to HDMI adaptor ?
@jessstuart7495
@jessstuart7495 2 жыл бұрын
Numpy and Matplotlib are my favorite python modules.
@stefansweerts3825
@stefansweerts3825 2 жыл бұрын
Thanks for the great video. I wonder what your experience is with the speed performance between serial, USB and ethernet?
@bald_engineer
@bald_engineer 2 жыл бұрын
For basic control, almost no difference. For bulk/binary data transfers, speed is as you would expect for the interfaces--depending on the instrument.
@stefansweerts3825
@stefansweerts3825 2 жыл бұрын
@bald_engineer thanks, I need to test it, especially with the data that comes from my scope.
@christiant2134
@christiant2134 7 ай бұрын
Hello, the test code is not available anymore on the website. Is there anyway to get it still?
@bald_engineer
@bald_engineer 7 ай бұрын
There are links to the github repo in the comments section of that page. I am pretty sure I updated the code after the video anyway.
@element14presents
@element14presents 7 ай бұрын
Thanks! The links have now been updated, and as @bald_engineer says, there's updated code on the github, also linked.
@MAYERMAKES
@MAYERMAKES 2 жыл бұрын
oh that is indeed very hnady Ineed to look into which of my equipment supports visa.
@Workshopshed
@Workshopshed 2 жыл бұрын
Just doing the same and realised I can potentially put a Linux based screen onto my USB scope
@elsageorgekurian3165
@elsageorgekurian3165 Жыл бұрын
can u share the code
@jobbjabb4815
@jobbjabb4815 5 ай бұрын
Do I have to install NI-VISA before? If I have, which one should I install, Full or runtime. Thank you.
@bald_engineer
@bald_engineer 5 ай бұрын
As explained in the video, no. You can use pyvisa-py as the VISA driver or other popular vendors. If you have a license for NI-VISA then you can use it. Doesn't matter when it is installed. pyvisa looks for VISA drivers each time it runs. I don't know the difference between Full and Runtime.
@jobbjabb4815
@jobbjabb4815 5 ай бұрын
@@bald_engineer Thank you for answer. It's very helpful.
@wuttipatph8243
@wuttipatph8243 7 ай бұрын
Good Video
@malgailany
@malgailany 2 жыл бұрын
Interesting and informative video. Thanks.
@vladtomoiaga4721
@vladtomoiaga4721 2 жыл бұрын
Maybe ASRL stands for Async serial?
@rmartin971
@rmartin971 Жыл бұрын
Gee! I didn't know that I was over 500 years old.
@BBRR442
@BBRR442 7 ай бұрын
hahaha why am i getting targeted ads for visa credit cards?? lol
@vjyothsnapriya
@vjyothsnapriya 6 ай бұрын
waveform generator connect to pc via lan cable in sterps sir please help me sir
@vjyothsnapriya
@vjyothsnapriya 6 ай бұрын
any one can help me signal generator to pc steps
@NickEdith
@NickEdith 3 ай бұрын
030 Crona Well
Digital Multimeter Buying Guide - Workbench Wednesdays
10:19
element14 presents
Рет қаралды 14 М.
Lab Instrument Automation with Python
10:10
Psychogenic Technologies
Рет қаралды 14 М.
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
How does a USB keyboard work?
34:15
Ben Eater
Рет қаралды 3,3 МЛН
Getting Started with LIDAR
47:27
DroneBot Workshop
Рет қаралды 1,4 МЛН
LabVIEW and TestStand-Together throughout the Test Lifecycle
49:57
LabVIEW for Test Instrument Control
8:27
NI Apps
Рет қаралды 36 М.
Reading USB in Python
8:12
Alex Lugo
Рет қаралды 133 М.
Intro to the Zig Programming Language • Andrew Kelley • GOTO 2022
50:14
PythonAutomationSeries 2 Physical Instrument Connection
4:11
Tim Fairfield's AE Test and Measurement Channel
Рет қаралды 19 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3,3 МЛН