Author Topic: Windows program 'Messinstrumente' for SCPI commands  (Read 1148 times)

0 Members and 1 Guest are viewing this topic.

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Windows program 'Messinstrumente' for SCPI commands
« on: March 19, 2020, 01:27:25 pm »
I have written a Windows program for my measuring instruments. It is still in development, but the existing one works. It is a new beginning and revision of the 'Messinstrumente' program.

It supports connection to USBTMC instruments with WinUSB driver installed. LAN instruments with LXI (VXI-11) protocol can also be used. The VXI protocol is complete, but I do not use e.g. device_lock/unlock commands. Since my mostly Rigol instruments have problems with them. I want to make this configurable.

At the moment only sending and receiving of SCPI commands is possible. Several instruments can be connected at the same time. More functions will follow.

Unfortunately the website is only available in german.

Maybe someone has use for the program:
https://peter.dreisiebner.at/messinstrumente/

Help or overview:
https://peter.dreisiebner.at/messinstrumente/hilfe.htm

Peter
« Last Edit: April 03, 2020, 08:34:45 am by PeDre »
 
The following users thanked this post: ebclr

Offline s8548a

  • Regular Contributor
  • *
  • Posts: 106
  • Country: in
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #1 on: March 21, 2020, 07:15:47 am »
At first look(did't translate the website) reminds me of the EEZ Studio project.
https://www.eevblog.com/forum/testgear/eez-studio-for-accessing-your-(scpi)-instruments/

hope you guy's can contribute a lot if collaborated.
« Last Edit: March 21, 2020, 07:18:52 am by s8548a »
 
The following users thanked this post: prasimix, Jacon

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2187
  • Country: 00
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #2 on: March 22, 2020, 01:38:12 pm »
If you want to test with Rigol DS5000 ( 5074 ) I will be glad to help you with that task
 

Offline aristarchus

  • Regular Contributor
  • *
  • Posts: 90
  • Country: 00
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #3 on: July 17, 2020, 02:23:47 pm »
@PeDre
Hi, I hope that you are ok.

Tried today the site links and it shows "Error occurred: 404 - not found"
Glitch ?

 
The following users thanked this post: PeDre

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #4 on: August 21, 2020, 04:21:30 pm »
I have extended the program, now a raw TCP connection to an instrument can be created.
As there is no protocol, the connection uses a waiting time of 2 seconds to receive the individual data blocks.

Link to the program is in the first post.

Peter
 

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #5 on: September 12, 2020, 06:14:45 pm »
I have extended the program a bit. The window positions are saved and restored. You can save and load the 'Workspace', it is in the menu "Window". As before, the windows can be opened separately if you press the Ctrl key when opening them.
The opened MDI client windows can be fitted into a free area. The upper left corner is used for the calculation.

There are problems if several screens with different scaling are used. In this case the positions are not restored, the windows are then displayed on the main screen. You can also disable this check in the "Window" menu.

It is now also possible to read in, display and save a screenshot of the instrument. The functions will be extended, for automatic import, different color display, etc.
Configuration files for the supported instruments are available in the 'Instrument' directory. You can create such files yourself, or send me the exact name of the instrument. For this I also need the output of the SCPI command '*IDN?'. Especially the first two fields of manufacturer and model name. This information is needed for the recognition of the instrument and the correct configuration file. The SCPI commands for reading the screen copy are also required.

I would be interested to know if Siglent instruments can be found and addressed e.g. in a network. Maybe someone can try this and report here.

https://peter.dreisiebner.at/messinstrumente/

Peter
 
The following users thanked this post: coromonadalix

Offline ddavidebor

  • Super Contributor
  • ***
  • Posts: 1168
  • Country: gb
    • Fermium
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #6 on: September 16, 2020, 12:38:15 am »
Very nice!
Davide Bortolami,
Fermium LTD
 
The following users thanked this post: PeDre

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #7 on: September 16, 2020, 05:00:25 am »
 

Online babysitter

  • Frequent Contributor
  • **
  • Posts: 852
  • Country: de
  • pushing silicon at work
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #8 on: September 16, 2020, 10:11:04 pm »
Just wanted to say thanks for Bildschirmkopie :)
I'm not a feature, I'm a bug! ARC DG3HDA
 
The following users thanked this post: PeDre

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #9 on: September 19, 2020, 09:31:13 am »
It is now possible to select options for controlling the instrument in the screenshot function. This allows e.g. to start single mode, wait for an event, and then read and save the screenshot. It can also be executed automatically. I have only tested with the Rigol DS1000Z and the R&S RTB2000. However, the corresponding SCPI commands are stored in the configuration files for all supported instruments.

Peter
 

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #10 on: September 28, 2020, 02:37:40 pm »
I might not be the only one using a Hameg HM2008 CombiScope. Therefore I have added a new option for the screenshot function to read the screen memory and display it in color. The images are 1024 x 1024 pixels and the colors are given by me.
Here are some sample images. I use the network connection with my HM2008. The connection with the USB or serial interface I will add later.

Peter
 

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #11 on: October 04, 2020, 06:09:11 am »
I have added the serial connection. With the HM2008 it works so far without problems. The 2 MB data in byte format, are read in 40 seconds, is even 5 seconds faster than the LAN connection.
I have not yet tested the sending of larger data.
I also added configuration files for the HM1008, HM1507 and HM1508 oscilloscopes. But the option 'display dumb' will probably not work, I have no sample data and cannot test.

Peter
 

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #12 on: October 24, 2020, 06:32:38 pm »
For the Hameg HM2008 and the Rigol oscilloscopes DS/MSO1000Z and DS/MSO2000A it is now possible to save the read in waveform data. With the 'Waveform' function the analog and digital channels can be read in manually or automatically. The data can be saved as CSV or binary file per channel. It is not yet possible to display the measurement curves.
I was not able to test reading and saving the digital channels for the MSO1000Z.

https://peter.dreisiebner.at/messinstrumente/

Peter
 

Offline pwlps

  • Frequent Contributor
  • **
  • Posts: 266
  • Country: fr
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #13 on: October 24, 2020, 07:26:59 pm »
I have extended the program, now a raw TCP connection to an instrument can be created.
As there is no protocol, the connection uses a waiting time of 2 seconds to receive the individual data blocks.

Link to the program is in the first post.

Peter

It might be more than 2 seconds if the command triggers a new measurement.  In USBTMC, VXI11 or similar protocols you can distinguish between non-responding device and measurement delay using serial polling but in a raw TCP you cannot have this information therefore default delays should be set long.

What is the programming language you are using ?  I wrote a lot of similar software in NET languages (C#, VB.NET) using various interfaces but didn't implement raw TCPIP yet.
 

Offline PeDre

  • Regular Contributor
  • *
  • Posts: 166
  • Country: at
    • Private Website
Re: Windows program 'Messinstrumente' for SCPI commands
« Reply #14 on: October 24, 2020, 07:39:41 pm »
The waiting time can be changed for each protocol individually in the settings.
The program is written in PureBasic. Additionally I use only the libusb-1 DLL.

Peter
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf