Products > Test Equipment
Open source EEZ Studio for accessing your (SCPI) instruments
prasimix:
--- Quote from: JPortici on May 03, 2018, 08:57:22 pm ---oh sorry for not being clear :) downloading from github..
third attempt... it also failed somewhere in the middle.
--- End quote ---
Oops, I didn't notice that while testing download. Possibly its depends of time of day/current load of GitHub.
prasimix:
A few words about "advanced" instrument session options:
Scripting
ESW allows us to create scripts to automate sending SCPI commands to the instrument. Currently two type of scripts are supported: a textual sequence of SCPI commands and Javascript code. List of available scripts (assigned to the Shortcuts described below) can be accessed using the icon on the left side of the session window.
Here is a simple example of script that contains a SCPI commands sequence:
When content of Rigol memory is accessed as described in one of previous post Javascript code is used because some programming logic with variables is needed when multiple SCPI commands and queries are exchanging with displaying progress status on the screen. Feel free to look and further modify this script (make an backup copy before that you can switch back in case of trouble):
Shortcuts
Shortcuts can be provided with the instrument extension but they can be also created by user (see column Group). Here is an example of list of all available shortcuts:
To add a new shortcut select Add shortcut. For example, we'd like to assign instrument self-test query (*TST?) to function key F10. If we don't want to assign any key to the shortcut (i.e. only want to have a button on the screen) already entered key can be cleared with option "x" next to Keybinding field. Some of the keys are intentionally not allowed to be used as shortcut (e.g. Del, Ins, PgUp, PgDn, etc.).
Since shortcut is used to call a script, you have to choose what type will be used (Action type) and in Action code you have to enter script code.
Added shortcut become visible in the lower part of the session window:
In this example we can see that group called "My group" is selected that is also user/custom defined group since shortcuts can be grouped for easier management of many shortcuts. To work with groups use Show groups option or to go back to shortcuts select Show shortcuts.
System settings
It was already mentioned that ESW will create database where all interaction with all instruments will be stored. We are using SQLite for storage and you can find its initial location under Settings reachable using the icon in lower left side of the ESW's Home page:
So, if you take care of your measurement add this database file into your backup scheduler, or move it into some of your folders that are already covered with backup routine. If database name or location is changed EEZ Studio need to be restarted, so in that case use Restart option.
Another parameter listed under system settings are Locale. Use it to change how datatime is displayed.
prasimix:
Here I'm going to demonstrate how is possible to import directly command set for a Keysight instrument that can be found in their Offline Command Expert Command sets.
First, if you don't have it locally, go to Keysight Offiline Command Expert Command Sets page and select Download (you'll be asked to register/login):
When downloaded, unzip it to the desired folder where it occupy about 1.3 Gb (!). Now you can start EEZ Studio and select in ESW module (default one) Extension manager by selecting its icon on the left side:
Use option Install Extension, and as an example we're going to install InfiniiVision 4000 X-Series Oscilloscope. My Offline Command sets are located in Downloads folder where I have to locate InfiniiVision4000X zip file:
When selected ESW will import it and it will appear as new added instrument extension:
Unfortunately this zip file does not include a picture of instrument, but that can be easily fixed by find it somewhere on the Net, e.g. one that is on the official instrument's page:
Right click on the picture, and we are ready to save it locally:
We can remove excessive surrounding white background (in any image editor) and add it using the Change image option when picture appear in instrument extension info:
Now, we can go back to the ESW Home page, select Add instrument option and select new added Keysight instrument from the list:
... and it will appear on the Home page:
Instrument is now ready for use (if it can be accessed by Ethernet telnet session :)) and we can see under SCPI help section complete list of available commands as imported from Keysight zip file:
Thanks in advance to anyone who is going to invest some time testing it with some Keysight instrument that can be reached by interfaces currently supported with this first version (i.e. EEZ Studio M1).
morris6:
--- Quote from: prasimix on May 05, 2018, 05:03:42 pm ---
Thanks in advance to anyone who is going to invest some time testing it with some Keysight instrument that can be reached by interfaces currently supported with this first version (i.e. EEZ Studio M1).
--- End quote ---
Thanks for this "how to use guide".
Installing the extension for the Keysight 34461A was easy, following the example you gave.
So far I tested a few measurements and a screen dump (HCOPy:SDUMp:DATA?), it works OK.
Next is to write a script for some data capture...
I have a question: Is it possible to erase a picture, screen dump, from the session history? It seems there are icons for save, clipboard and add note, but not for erase?
prasimix:
Looks great! Thanks a lot for that. Currently there is no possibility to remove anything from the session. I'm aware that such strict policy is not necessary in Hobbyist/DIYer lab but could be interesting in some other environment (that also require better security/user access control, etc.). Anyway, since everything is going into database, plan is to make it similar to what is already possible with deleted instrument: when you'd like to delete an item, in the first step it will be marked as deleted and will disappear, and in second it can be completely removed from the database. The first step is accompanied with the risk that "workflow" will be broken. That can make a testing/experimenting reconstruction after some time more difficult or even impossible. But that can be resolved with restore/undelete action from the "trash bin" as long as second step (purge) is not selected.
"Deleted items" will be just another type of data filter/view that can be used to narrow search over tons of data. I'll keep you posted about progress, we are just reached Milestone 1, and few more are waiting in the row :).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version