B2) Connect to the instrument directly using RS232 (if you have a RS232 port) or Ethernet (if you have an Ethernet port). In this case, you don't need a Visa stack. You just need to find in your language of choice how to open a serial port (RS232) or a TCP socket (Ethernet). You can talk to your instrument using a terminal emulator like Putty and configuring it for serial or telnet.
There is no such method for connecting through USB. A USB instrument can only be accessed through a Visa stack.
I'm trying to find a working combination of software, so that I can script commands to Rigol devices.
Telnet port 5555?
Telnet port 5555?
Yes, as I said above, I realized that after going the complicated route. That seems to be the simplest by far. Though not through telnet but through code.
A USB instrument can only be accessed through a Visa stack.
Yes, you use telnet as the "driver". It's much easier/cleaner than all that other crap.
The programming guide is here:
http://int.rigol.com/File/TechDoc/20151218/MSO1000Z&DS1000Z_ProgrammingGuide_EN.pdf (http://int.rigol.com/File/TechDoc/20151218/MSO1000Z&DS1000Z_ProgrammingGuide_EN.pdf)
A USB instrument can only be accessed through a Visa stack.
That's not true. The visa stack uses the usbtmc protocol for usb connection.
When using the usbtmc protocol (without the visa stack), it's basically the same as direct tcp/ip.
For example, DSRemote uses usbtmc without visa stack.
If you want to learn more about it, read this: http://literature.cdn.keysight.com/litweb/pdf/5989-6718EN.pdf (http://literature.cdn.keysight.com/litweb/pdf/5989-6718EN.pdf)
A USB instrument can only be accessed through a Visa stack.
That's not true. The visa stack uses the usbtmc protocol for usb connection.
When using the usbtmc protocol (without the visa stack), it's basically the same as direct tcp/ip.
For example, DSRemote uses usbtmc without visa stack.
If you want to learn more about it, read this: http://literature.cdn.keysight.com/litweb/pdf/5989-6718EN.pdf (http://literature.cdn.keysight.com/litweb/pdf/5989-6718EN.pdf)
Fair. You don't need the full Visa stack, but you need a USBTMC driver.
A USB instrument can only be accessed through a Visa stack.
That's not true. The visa stack uses the usbtmc protocol for usb connection.
When using the usbtmc protocol (without the visa stack), it's basically the same as direct tcp/ip.
For example, DSRemote uses usbtmc without visa stack.
If you want to learn more about it, read this: http://literature.cdn.keysight.com/litweb/pdf/5989-6718EN.pdf (http://literature.cdn.keysight.com/litweb/pdf/5989-6718EN.pdf)
Fair. You don't need the full Visa stack, but you need a USBTMC driver.
The most used operating system in the world has it already builtin.
It's like saying that you need a tcp/ip driver if you want to use LAN connection...
MESSAGE="*IDN?\n"
exec 5<>/dev/tcp/192.168.1.6/5555
printf $MESSAGE >&5
MESSAGE=$(dd bs=$NUM_BYTES count=$COUNT <&5 2> /dev/null)
echo $MESSAGE
exec 5<&-
exec 5>&-
Here you can read how to control your scope via lan from within a script without the need to install any drivers,
using direct tcp/ip: http://xmodulo.com/tcp-udp-socket-bash-shell.html (http://xmodulo.com/tcp-udp-socket-bash-shell.html)
No further comment on the "most used OS in the world".thats android.
The only important thing here is that the solution works on edgelog's OS of choice - whatever that is.
Python works well since its runs on multiple platforms. I use the raspberry Pi image with the python scripts. It has a web server so you can access the graphs from any device.
Here is my Rigol DM3068 setup.
Here is a reference python script. Works great.
That's Android, that's Linux, not if you count this, yes, if you count that.