How To Automate Rigol [and most other] Test-Equipment With Python and SCPI

  Рет қаралды 49,073

Core Electronics

Core Electronics

Күн бұрын

Control your lab gear without even touching them! Log the data too.
Full tutorial, code and documentation - core-electronics.com.au/tutor...
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
All things Rigol: core-electronics.com.au/brand...
Rigol Oscilloscope: core-electronics.com.au/catal...
Python Workshop: core-electronics.com.au/tutor...

Пікірлер: 94
@TheGmr140
@TheGmr140 3 жыл бұрын
very cool, glad i found this channel, i have a few rigol gear, and now i can control them to create auto tests, very nice done video, thanks
@rothenbergt
@rothenbergt 3 жыл бұрын
Excited to start writing scripts for testing hardware. Thanks for the introduction.
@Tom-ws4cj
@Tom-ws4cj 3 жыл бұрын
Unbelieveable ! Didn't know that was possible. Thanks for the great tutorial........now I'm off to tinker and learn more :-)
@garthhowe297
@garthhowe297 2 жыл бұрын
Excellent video ...exactly what I was looking for. Thank you
@JonathonHorder
@JonathonHorder Жыл бұрын
Literally exactly what I was looking for. Thank you!
@wasimfirdaus7249
@wasimfirdaus7249 3 жыл бұрын
You have covered an Excellent topic. Thank you so much. I have tried the same way to communicate with instrument from other vendor. It works.
@beandope6675
@beandope6675 3 жыл бұрын
Really helpful tutorial! Please more videos of this series!!!!
@arun.graikar2092
@arun.graikar2092 3 жыл бұрын
Loved it, being Test design professional I am looking same kind of tutorial for python, thank you
@BigMaxTube
@BigMaxTube 3 жыл бұрын
Huh. As a rigol products owner, I should give this concept a try. Thanks for showing us what's possible!
@banana_smoothie
@banana_smoothie 2 жыл бұрын
I got really big help from this tutorial. Thank you.
@IkiF83
@IkiF83 2 жыл бұрын
I started to learn Python and wanted to learn how to control DMM and PSU. This video is excellent for this!!
@juliatruchsess1019
@juliatruchsess1019 3 жыл бұрын
Great tutorial, thank you.
@arielalvarezwindey955
@arielalvarezwindey955 3 жыл бұрын
Very clear! Thanks for the video :)
@frodriguez2511
@frodriguez2511 2 жыл бұрын
Super useful!! great tutorial...Thanks!
@jimquinn
@jimquinn 2 жыл бұрын
Excellent! Very motivational. Would love to see an implementation of two DMMs as a XY recorder, like the old HP704x. Thanks! Great job!
@gcm4312
@gcm4312 9 ай бұрын
very helpful. great video
@roadkisserful
@roadkisserful Жыл бұрын
Loved it coming in raw no experience and very useful
@fanyang4709
@fanyang4709 3 жыл бұрын
I think this is so good ,thank you !
@karlkawano
@karlkawano 3 жыл бұрын
Awesome! Thanks!
@RyanUptonInnovator
@RyanUptonInnovator 3 жыл бұрын
Very Very good video!!!
@electronic7979
@electronic7979 3 жыл бұрын
Very good
@lelliscanario3527
@lelliscanario3527 3 жыл бұрын
Excellent video.
@user-su7bc3td1f
@user-su7bc3td1f 6 ай бұрын
FANTASTIC THANK YOU!
@toastrecon
@toastrecon Жыл бұрын
Amazing! I’ll have to play with this. Have to get a device first. 😊
@jholworld
@jholworld 3 жыл бұрын
Lovely video. Thank you very much :).
@sparky_winston
@sparky_winston 3 жыл бұрын
Great tutorial, very well made and exactly what I'm looking for. Thanks 👍
@Core-Electronics
@Core-Electronics 3 жыл бұрын
Glad it was helpful!
@antoniocarvalho8320
@antoniocarvalho8320 Жыл бұрын
@@Core-Electronics do you ave others instruments controlled using Python?
@ManikantaRaju
@ManikantaRaju 3 жыл бұрын
You just earned a subscriber. 😃
@stevenwilliams6258
@stevenwilliams6258 3 ай бұрын
Thanks for this simple but instructive video. I don't have a programmable PS but do have a Siglent AWG and UNI-T 8805E DMM and some scopes to try this on. I am not proficient on Linux - have it on Windows 11 and I have a Raspberry PI. Will give it a try.
@gRoblez
@gRoblez 3 жыл бұрын
Very useful, thank you very much
@akhilaithal4301
@akhilaithal4301 2 жыл бұрын
Excellent video, exactly what i was looking for. Could you also make a similar video for oscilloscopes and show how to capture screen images directly onto the connected computer and also how to save and load setup using Python SCPI commands. I tried to do so, but encountered some issues. Thanks a lot. Looking forward to more such videos. :)
@ArtemIoTDeveloper
@ArtemIoTDeveloper Жыл бұрын
Awesome! Going to try with my Siglent setup
@Core-Electronics
@Core-Electronics Жыл бұрын
Happy making 👍
@Wil_Bloodworth
@Wil_Bloodworth 3 ай бұрын
Very cool indeed. Not sure what practical uses this has but I'm sure they are probably endless.
@yuma5297
@yuma5297 Жыл бұрын
i am a physics student i really think something like that should be learned in every curriculum. that would have been so helpful for each lab course i had.
@Ringer1982
@Ringer1982 3 жыл бұрын
Awesome! Great tutorial, thank you!
@pendalink
@pendalink 2 жыл бұрын
fantastic video
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Thanks! Hope you found it useful for your experiments.
@carloscosta4713
@carloscosta4713 Жыл бұрын
Excelente trabalho. Mais um inscrito no canal. Brasil presente!!!
@inguy0
@inguy0 3 жыл бұрын
So helpful
@NathanWilkie
@NathanWilkie Жыл бұрын
I remember doing a similar setup for 4 point probe measurements to get the IR curves of various resistors, it seems like this would be a massive upgrade to automate and create standardized tests. Believe it or not it was done with an HP9000 using HP basic an a series of relays. This would be a massive upgrade.
@EarlWallaceNYC
@EarlWallaceNYC 3 жыл бұрын
Good Stuff
@nityanandadas5575
@nityanandadas5575 Жыл бұрын
Excellent. Really, this is what I need. Can I plot test flow of voltage and current in real time? Please.
@owmykneecap5821
@owmykneecap5821 2 жыл бұрын
Nice trick with the file header
@XLCaudio
@XLCaudio Жыл бұрын
What text editor are you using? Are there plugins you have installed to recognize PyVISA syntax?
@avral4148
@avral4148 2 жыл бұрын
If I had Python basics in two years ago plus your video, I would not have spent to much time with struggling with Labview in the lab…
@sobbsaroonie
@sobbsaroonie 2 жыл бұрын
Are you using two separate USB ports on your computer, are they both connected to one port or can you use a hub on one port to talk to both, or do you have to use 2 separate USB ports. Need to know how to do this. thanks
@telmopelicano
@telmopelicano 4 ай бұрын
I have a thermouple that I use with the rigol 3068 , but I cant find commands to get the temperature I see on the screen? Do you know how to do this? The multimeter works fine and reports the correct temperature out but I want to automate the process like you do on this video. Can anyon help?
@ljuberzy
@ljuberzy 3 жыл бұрын
By any chance, have you tried it with rigol scopes? (namely, 1054z) How fast does this data acquisition work via USB and via Ethernet? Will it be able to get, say, 1000 data points for two channels per second online?
@JesseMProductions
@JesseMProductions 2 жыл бұрын
If there is no command for what I am trying to do (create a voltage ramp over a long period of time) in the programming manual for the power supply that I am using does that mean I cannot do it?
@michsmi8297
@michsmi8297 3 жыл бұрын
In the old days this would have probably been implemented using gpib and HPbasic. Though for legacy equipment this method is still used and a modern version of HTbasic that works with windows 10 is still available.
@LuizEnger
@LuizEnger 2 жыл бұрын
Could you make a video on using PyVISA-py as backend instead of NI? By the way, PyVISA works with R&S VISA backend just as fine
@cessromer7078
@cessromer7078 2 жыл бұрын
HELLO. What woud be the command in python to write a datalogging of voltage in function of time for every one second sampling ?
@willj476
@willj476 3 жыл бұрын
anyone know where the waveform cushion in the background is from?
@felipesiedschlagyopan4185
@felipesiedschlagyopan4185 Жыл бұрын
This is awesome. Unfortunately my HP34401A always shows an error for whatever request I send to it via pyvisa =(
@houarifellah8901
@houarifellah8901 3 жыл бұрын
Great tutorial , can you help me for project of create a rebote laboratory?
@hendraadhiputra6966
@hendraadhiputra6966 Жыл бұрын
Very good video, can i ask you something about SCPI.? I have LCR meter Agilent 4263B, this instrumen is Obsolute but i am want to read data CS & RS, i have manual book but i don't understand to make it, can you help me, please...
@ThomasLouttit
@ThomasLouttit 11 ай бұрын
Hi there, I am just trying to follow your video and when trying to download pyvisa I go the following error message, import pyvisa Traceback (most recent call last): File "", line 1, in import pyvisa ModuleNotFoundError: No module named 'pyvisa' Please explain what I am doing wrong and how to fix it.
@danushvenkatesh4868
@danushvenkatesh4868 3 жыл бұрын
how to capture the scope please explain that part
@DavidDaminelli
@DavidDaminelli 2 жыл бұрын
Thanks for the tutorial, it really helped me! One question - when you run "rm.list_resources()", a list of the avaliable instruments shows up. Will this names always be the same? I mean, will your power source always shows up as 'USB0::0x1AB1::0x0E11::DP1234567890::INSTR' ?
@Core-Electronics
@Core-Electronics 2 жыл бұрын
It's unlikely that your power source will have the same pattern as mine, but the DP in that string is the tell-tale that the device is a Rigol DP series power supply. It seems that every time you plug the device into a new port the addressing part of that string will change, but the DP will remain the same.
@DavidDaminelli
@DavidDaminelli 2 жыл бұрын
@@Core-Electronics Hmm, ok, so, as I imagine, everytime that I want to run this script I need to change the device name. But, using what you just told, I could write something like "device = [x for x in rm.list_resources() if DP1234567890 in x], wright?
@XLCaudio
@XLCaudio Жыл бұрын
@@DavidDaminelli it is usually the Power supply's serial number where 'USB0::0x1AB1::0x0E11::DPXXXXXXXXX::INSTR'
@nityanandadas5575
@nityanandadas5575 Жыл бұрын
Thank you so much for such a nice and helpful video. I must tell you that your video made it possible to automate my Programmable power supply TH6402B. which doesn't come with any dedicated software and supports only SCPI. I never used SCPI and your video made it possible. Is it possible to draw the graph of current vs voltage in real time? Thanks and Regards.
@Core-Electronics
@Core-Electronics Жыл бұрын
That's so great to hear! We're glad this helped :D Graphing is pretty simple in python and there are multiple packages available eg. Matplotlib. You'll certainly be able to query the output values from the power supply. What remains to be seen is whether you will get the resolution and sample rate you desire. Have a go and find out!
@nityanandadas5575
@nityanandadas5575 Жыл бұрын
@@Core-Electronics Thanks for your nice reply. I will have a try for graphing.
@ThomasLouttit
@ThomasLouttit 11 ай бұрын
Is there a video on downloading/installing pyvisa and the NI VISA Library?
@Core-Electronics
@Core-Electronics 11 ай бұрын
Not a whole video, but its covered in the article: core-electronics.com.au/guides/automating-test-equipment-with-python/#preparation
@robertomanuelpaulik4236
@robertomanuelpaulik4236 3 жыл бұрын
it is possible to do this with instruments from different manufacturers?? for example an oscilloscope Siglent with an a power supply or multimeter Rigol?
@Core-Electronics
@Core-Electronics 3 жыл бұрын
It sure is :) if the device supports SCPI - then have at it
@romanhar4151
@romanhar4151 3 жыл бұрын
Thanks for the Great Video. - I will get the MSO 5000 soon .. :-) But i guess this will lead to some more GAS (Gear Acquisition Syndrome) :-I
@brucetouzel6484
@brucetouzel6484 Жыл бұрын
is it possible to mirror the test equipment display onto a monitor by simply using a USB to HDMI adaptor ?
@Core-Electronics
@Core-Electronics Жыл бұрын
No likely - the USB connection is probably intended for communications only. To run an external display you'd have to query the parameters you want (SCPI) and then display them separately using eg. a GUI package.
@cessromer7078
@cessromer7078 5 ай бұрын
Very mind.
@ivolol
@ivolol Жыл бұрын
Dayum, RIP Atom :) Python has a built-in CSV library! I always advise use that when possible.
@Core-Electronics
@Core-Electronics Жыл бұрын
Atom 😥 Yeah you're right! At the time of filming my Python-foo was pretty weak so I missed this one
@deadmopo3174
@deadmopo3174 2 жыл бұрын
Is it work on linux?
@testafx6687
@testafx6687 3 жыл бұрын
Hi, does this support RS-232 and RS-485 serial connections?
@abderrezakboukazouha4254
@abderrezakboukazouha4254 3 жыл бұрын
you need to Install National Instrument Backend to detect the instrument itself
@vjyothsnapriya
@vjyothsnapriya 20 күн бұрын
sir please help me waveform generator conneted with pc
@abelmaxplayread2900
@abelmaxplayread2900 Жыл бұрын
With the first channel, everything works. But when I turn on any other channel, for some reason only the first one works for me. The code is exactly like yours except for the channel number. Thanks.
@Core-Electronics
@Core-Electronics Жыл бұрын
The best way to get technical help for any of our content is on the forums: forum.core-electronics.com.au/ We're full-time makers and are on the forums every working day!
@jimdieckmann2025
@jimdieckmann2025 Жыл бұрын
Can this be done on a R-Pi 4?
@Core-Electronics
@Core-Electronics Жыл бұрын
We haven't tried, but probably! This is all Python driven so it should be pretty straight forward on a Pi
@luiscorona6207
@luiscorona6207 3 жыл бұрын
I have a problem, list_resources() doesn't return me the visa number of my device it only returns empty parentheses (), why?
@diablomoto1328
@diablomoto1328 3 жыл бұрын
I am having same issue
@diablomoto1328
@diablomoto1328 3 жыл бұрын
the solution to this issue for me was to run "sudo python3"
@jackk2860
@jackk2860 3 ай бұрын
7:03
@LuvxJacqu4li8e
@LuvxJacqu4li8e Жыл бұрын
Thanks
@automatedintegratedsolutio5218
@automatedintegratedsolutio5218 2 жыл бұрын
Michael, Check out ScpiStudio at (www.automatedintegratedsolutions.com) for control of test equipment. I believe you will find it very interesting.
@martinsin9775
@martinsin9775 2 жыл бұрын
Great! Thank you very much for your tutorials
@Core-Electronics
@Core-Electronics 2 жыл бұрын
Glad you like them!
Use PyVISA to Program Test Tools with Python - Workbench Wednesdays
13:35
element14 presents
Рет қаралды 34 М.
Дибала против вратаря Легенды
00:33
Mr. Oleynik
Рет қаралды 5 МЛН
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
EEVblog #675 - How To Reverse Engineer A Rigol DS1054Z
38:58
EEVblog
Рет қаралды 174 М.
EEVblog #1232 - Add Web Access To Old Instruments!
19:59
EEVblog
Рет қаралды 59 М.
Rigol DHO802 Oscilloscope - Bandwidth better than advertised !
2:35
PythonAutomationSeries 4 writing your first program
28:59
Tim Fairfield's AE Test and Measurement Channel
Рет қаралды 24 М.
Lab Instrument Automation with Python
10:10
Psychogenic Technologies
Рет қаралды 10 М.
eevBLAB 101 - Why Are Tektronix Oscilloscopes So Expensive?
23:43
PythonAutomationSeries 1 Intro
5:17
Tim Fairfield's AE Test and Measurement Channel
Рет қаралды 33 М.
Unlock Arduino's Power with Python | Step-by-Step Guide
9:41
Enjoy Mechatronics
Рет қаралды 14 М.