Author Topic: VISA scan/screen capture utility  (Read 1989 times)

0 Members and 1 Guest are viewing this topic.

Offline jhenderson0107Topic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
    • Elk Engineering
VISA scan/screen capture utility
« on: January 17, 2022, 04:15:45 pm »
Here's  https://share.elkengineering.net/-U3YjecZVq6  a minimal Windows utility to scan connected instruments using NI/Agilent VISA (GPIB, USB, ethernet, etc) and display screen shots and ID details.  Supports many brands/models, but notify this thread if your instrument is omitted.  Hope you find it useful. 

Revision v1.0.0.5: Add support for Agilent 53310A MDA
Revision v1.0.0.6: Adds ability to save rendered screen to file
« Last Edit: September 06, 2023, 11:03:41 pm by jhenderson0107 »
 
The following users thanked this post: coromonadalix, jjoonathan, hua, Mortymore, Sighound36, teddychn

Offline Hexley

  • Regular Contributor
  • *
  • Posts: 202
  • Country: us
Re: VISA scan/screen capture utility
« Reply #1 on: January 17, 2022, 05:21:17 pm »
Here's https://www.dropbox.com/s/fj1vu2b95y8ipu4/ConnectionManager.exe?dl=0 Supports many brands/models, but notify this thread if your instrument is omitted.
Nice work, and thanks for posting.

If it's not too much work, one useful enhancement could be to support the "SCDP" screen dump command that Siglent uses for some of its products. See colorado.rob's work as mentioned in this message for more information:  https://www.eevblog.com/forum/testgear/the-siglent-sdg2042x-thread/msg2346945/?topicseen#msg2346945 .
 
 
The following users thanked this post: Mortymore, pezcat19

Offline jhenderson0107Topic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
    • Elk Engineering
Re: VISA scan/screen capture utility
« Reply #2 on: January 17, 2022, 05:46:15 pm »
Updated v1.04 adds screenshot support for Siglent SDGs. 
 
The following users thanked this post: Mortymore, Hexley, KungFuJosh, pezcat19

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 1900
  • Country: us
  • TEAS is real.
Re: VISA scan/screen capture utility
« Reply #3 on: September 05, 2023, 01:43:14 pm »
Hi,

I tried connecting the app to my Siglent SDG2122X AWG, and I'm not able to get a connection over TCPIP. I've specified  xxx.xxx.xxx.xxx:Port and I've tried xxx.xxx.xxx.xxx Port also, but it can't find the device. For the Siglent, the two port options are 5024 (telnet) and 5025 (scpi?).

I noticed in the log it appears to search using the *INSTR query. I tried that over telnet and the SDG does not give any response to that query. Is it possible to try searching using *IDN? instead? Can the search query be specified or overridden in the settings.ini file?

Thanks,
Josh
"I installed a skylight in my apartment yesterday... The people who live above me are furious." - Steven Wright
 

Offline jhenderson0107Topic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
    • Elk Engineering
Re: VISA scan/screen capture utility
« Reply #4 on: September 05, 2023, 05:58:29 pm »
Josh -

In my experience, LAN devices are rarely (if ever) properly auto-detected by the Agilent Connection Manager or NI Measurement Explorer.  This is unlike unlike USB and GPIB devices, which typically auto-detect properly.   I suspect this is because scanning and auto-detection of LAN devices could be very time-consuming.

For LAN devices, you must first manually add the device to the instrument tree.  Afterwards, it will be detected by my utility and will render a screenshot as illustrated in the attachments. 



« Last Edit: September 05, 2023, 06:02:24 pm by jhenderson0107 »
 
The following users thanked this post: tautech, KungFuJosh

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 1900
  • Country: us
  • TEAS is real.
Re: VISA scan/screen capture utility
« Reply #5 on: September 05, 2023, 08:50:37 pm »
I was trying to get it to work with just your utility and the nivisa runtime. I didn't realize I needed another app to make the connection. I'll try setting that up.

Thanks!
"I installed a skylight in my apartment yesterday... The people who live above me are furious." - Steven Wright
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 1900
  • Country: us
  • TEAS is real.
Re: VISA scan/screen capture utility
« Reply #6 on: September 06, 2023, 01:08:27 am »
For anybody else trying to do this, here's what I had to do:

Installed Keysight Connection Expert (IOLibSuite_18_3_29517) which includes visa drivers, so you don't need others.

Add the IP in the TCPIP settings (port number is already listed) in Keysight Connection Expert.

Open the connection manager app, hit Discover, and keep the IP address box EMPTY. It will then discover the device added from the Keysight app.

Hitting the Render button pops a screenshot from the AWG on the computer screen.


Question: does/can it save the image somewhere, or do we have to screenshot the render?

Thanks,
Josh
"I installed a skylight in my apartment yesterday... The people who live above me are furious." - Steven Wright
 

Offline jhenderson0107Topic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
    • Elk Engineering
Re: VISA scan/screen capture utility
« Reply #7 on: September 06, 2023, 12:57:26 pm »
Question: does/can it save the image somewhere, or do we have to screenshot the render?

Yes, use the Clip button atop the rendered image to copy the image to the Windows clipboard, then paste it into your target application as desired.  See attached image. 
 

Offline jhenderson0107Topic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
    • Elk Engineering
Re: VISA scan/screen capture utility
« Reply #8 on: September 06, 2023, 01:00:54 pm »
For anybody else trying to do this, here's what I had to do:

Installed Keysight Connection Expert (IOLibSuite_18_3_29517) which includes visa drivers, so you don't need others.  Add the IP in the TCPIP settings (port number is already listed) in Keysight Connection Expert
To clarify, use of the Connection Expert or NI Discovery tools are required only for LAN -connected instruments.  USB, GPIB devices are added to the Visa instrument libraries automatically. 
 

Offline jhenderson0107Topic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
    • Elk Engineering
Re: VISA scan/screen capture utility
« Reply #9 on: September 06, 2023, 01:07:58 pm »
Open the connection manager app, hit Discover, and keep the IP address box EMPTY. It will then discover the device added from the Keysight app.
To clarify, the IP address box is used to specify the address of the instrument server rather than a specific instrument.  The server is the PC into which USB, GPIB and RS232 devices are physically connected and on which the Visa server feature has been enabled. 

Imagine you have a PC (running Visa server) located in a remote lab to which many instruments are connected, running experiments.  You could connect to and control any of those instruments by entering the IP address of the server in the IP address box. 
 

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 1900
  • Country: us
  • TEAS is real.
Re: VISA scan/screen capture utility
« Reply #10 on: September 06, 2023, 08:48:50 pm »
Question: does/can it save the image somewhere, or do we have to screenshot the render?

Yes, use the Clip button atop the rendered image to copy the image to the Windows clipboard, then paste it into your target application as desired.  See attached image.

If you ever feel like adding the feature, saving directly to a jpg file would be great.

Thanks for all the additional info!

Now that I have this, Siglent will finally release a firmware with a simple screenshot capture. 🤣🤣
"I installed a skylight in my apartment yesterday... The people who live above me are furious." - Steven Wright
 

Offline jhenderson0107Topic starter

  • Regular Contributor
  • *
  • Posts: 133
  • Country: us
    • Elk Engineering
Re: VISA scan/screen capture utility
« Reply #11 on: September 06, 2023, 11:05:15 pm »
If you ever feel like adding the feature, saving directly to a jpg file would be great.
Feature added.  Updated link in original post of this thread. 
 
The following users thanked this post: coromonadalix, Hexley, KungFuJosh

Offline KungFuJosh

  • Super Contributor
  • ***
  • Posts: 1900
  • Country: us
  • TEAS is real.
Re: VISA scan/screen capture utility
« Reply #12 on: September 06, 2023, 11:20:02 pm »
If you ever feel like adding the feature, saving directly to a jpg file would be great.
Feature added.  Updated link in original post of this thread.

That was fast! Thank you.
"I installed a skylight in my apartment yesterday... The people who live above me are furious." - Steven Wright
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 6171
  • Country: ca
Re: VISA scan/screen capture utility
« Reply #13 on: September 28, 2023, 04:11:40 pm »
Snif  sadly doesn't seems to work on my Siglent SDS1104X-E  or Rigol  DS1104Z   in usb tmc  mode ??  can not use  rj45

says the scopes doesn't have screen capture support ??

they both identify ...
 

Offline alm

  • Super Contributor
  • ***
  • Posts: 2903
  • Country: 00
Re: VISA scan/screen capture utility
« Reply #14 on: September 28, 2023, 04:34:24 pm »
If you ever feel like adding the feature, saving directly to a jpg file would be great.
Why would you ask for JPEG and not PNG for a screen capture  :-//


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf