I'll look at it. Is it both channels or just one?
This issue is on both channels.
BTW: after connecting, in the Rigol's display the letters "Rmt" are popping up on the top-right corner (very fast and short, almost hard to see).
The Rmt is normal. There is an unlock button on the front tab. If you uncheck it, the scope keyboard will STAY locked until you shutdown qrigol. I didn't like that, so if you click unlock, qrigol unlocks the keyboard as soon as it is done using it so you can still push the knobs.
I can't reproduce the X10 issue -- I suspect it is some locale formatting of floating point numbers (do you use "," for a decimal point?) I am going to try to send you a test copy that may or may not fix it.
The Rmt is normal. There is an unlock button on the front tab. If you uncheck it, the scope keyboard will STAY locked until you shutdown qrigol. I didn't like that, so if you click unlock, qrigol unlocks the keyboard as soon as it is done using it so you can still push the knobs.
I can't reproduce the X10 issue -- I suspect it is some locale formatting of floating point numbers (do you use "," for a decimal point?) I am going to try to send you a test copy that may or may not fix it.
I am living in Germany, and yes, you are right. Here we use the use the comma instead of the dot. E.g. 1/2 is in Germany 0,5 and NOT 0.5.
The test version I provided may help. What I think is happening is the scope is returning something using a "." separator and the Qt libraries are sensitive to your locale and are thus using a "," separator and that's confusing things. The bad news is that's going to confuse a lot of things. The good news is I have all the floating point pieces in one place, so maybe if my theory is right it won't be that hard to fix. Let me know if that test case fixes it.
And yes, I have been to beautiful Germany before as a side trip from the Netherlands. Last time I drove to Koln to see the big church there. So impressive.
The test version I provided may help. [...]
And yes, I have been to beautiful Germany before as a side trip from the Netherlands. Last time I drove to Koln to see the big church there. So impressive.
I checked out the test-version. Unfortunately, it doesn't fix the problem (still the same issue).
Nice you have been in Germany (and the Netherlands, which I like also).
That is a poser then. I may post another test version that would output some data on your terminal (you'd have to start it from the terminal) if you don't mind.
Just to be sure. You need to run the new version directly (e.g., click it in your file manager or specify a whole path like ./qrigol on the terminal). Otherwise the one in /usr/bin installed by the package manager will run.
I'm about to post another debugging version. If you have it in, say, ~/Downloads you could open a terminal and say
~/Downloads/qrigol
to execute it.
The terminal should have messages like:
DEBUG: cmd=:CHAN1:PROB?
DEBUG: 10.000000 10
DEBUG: 10X
DEBUG: cmd=:CHAN2:PROB?
DEBUG: 10.000000 10
DEBUG: 10X
Once you connect. Also when you press the read scope button. I would like to see those DEBUG: statements if you have time to do that. Thanks!
Ok it is the , separator and I guess Qt isn't as locale sensitive as I thought it would be.
I am about to be on the motorcycle for a few hours, but when I get back I'll devise a fix. My guess is lots of floating point conversions are going to be a problem so you will probably find other places where this is the case.
Thank you for taking the time to troubleshoot this.
Ok it is the , separator and I guess Qt isn't as locale sensitive as I thought it would be.
I am about to be on the motorcycle for a few hours, but when I get back I'll devise a fix. My guess is lots of floating point conversions are going to be a problem so you will probably find other places where this is the case.
Thank you for taking the time to troubleshoot this.
hey take your time ... and ... it's up to us, who are using your software, to say "thank you".
Enjoy riding your motorcycle (but ride safe
)
OK if Bigman says the new test version solves the problem I will update github and release 0.2 which has a few other minor fixes.
Well no joy with the last version.
I set my scope up to use German, just to see, but it still outputs 10X as 1.000e+01
On my machine, converting that to a float with sscanf gives me 10.0 (as it should). But with the locale set to somewhere where , is the decimal point, it gives 1. That makes sense.
My test code tried to get the current idea of the decimal point and (unless it is '.') replaces floating point output '.' -> whatever the dp character is. Then it does the conversion. The only thing that might upset that is if Qt is using a correct locale and C++ is using the "C" locale. Maybe that's the problem.
Due to the time difference, I think it will be tomorrow before we test anymore.
I was trying to keep the low-level code Qt agnostic, so I avoided QString. I had attempted... oh wait... I got the money punct instead of the number punct. I wonder if that's why? You'd think they were the same, but maybe not. Don't know why I did that though. One more try...
I went ahead and posted v0.2 in both deb,rpm, and binary formats. This attempts to fix the locale issue (reports to confirm or the contrary are welcome) and adds a nice help system. Minor bug fixes etc.
Thank you for all your work on this! If there's a DS1054Z version coming, and 32 bit .deb, I'd like to try it out.
I was just playing with the 1054Z... going over the network is essentially the same, so this isn't very far fetched. Would just have to adjust for the difference in commands and channels. As for 32 bit deb, that's a little work, but not too much. However, if you don't care to wait try this:
1) Download the ZIP file from Github (right hand side of the screen).
2) sudo apt-get install qtcreator
3) Unzip zip file
4) Open up .pro file. Select qt kit of your choice
5) Build or run from qtcreator at your option
..
2) sudo apt-get install qtcreator
..
When I read you need to install qtcreator I'm thinking "has the developers of QT gone completely nuts"? No they haven't , do the following -
$ qmake qrigol.pro
$ make
Done!
Will try it tonight as I don't have a rigol at work.
Yeah, I figure if you have the Qt tools you probably know that. If not, you might as well get the package.
I just let go my 1052E (too many scopes) so probably how it is is how it is going to stay unless someone wants to adopt it
First comment: GREAT!
I own a Rigol DS1102E and on my PCs I am running Arch-Linux. Downloaded the files from https://github.com/wd5gnr/qrigol, opend it with QtCreator and compiled it succussfully. I used the USB-port at the back of the DS1102E and checked on the Linux-PC the available USBs in the /dev/ folder with "ls -alh | grep usb". Indeed there was now "usbtmc2", hence in wd5gnr, I typed for the device "/dev/usbtmc2". Well, but after pressing "connect" I am getting the message "Can't open device".
Any ideas, where to look for the problem (e.g. do I have to consider some settings at the Rigol)?
Thanks in advance & cheers
I agree: GREAT! Thanks for posting the source on github. I'm very interested in getting this to work.
I've compiled qrigol for the Raspberry Pi (raspbian)... and I was hoping to get it talking to my DS1054z.... however I don't see any usbtmc ports. I've rebooted, and still no joy. Does the usb driver get installed automatically?
pi@raspberrypi ~ $ sudo ls /dev -alh | grep usb
drwxr-xr-x 2 root root 60 Dec 31 1969 usb
and tips on getting the RPi to see the Rigol USB device?
thanks!
See if this helps you: http://scruss.com/blog/2013/12/15/my-raspberry-pi-talks-to-my-oscilloscope/
some good suggestions on that link, thanks... but the RPi does not even see a Rigol device:
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 04f2:0833 Chicony Electronics Co., Ltd
Bus 001 Device 005: ID 04f2:0939 Chicony Electronics Co., Ltd
pi@raspberrypi ~ $ sudo apt-get install libusb-1.0-0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libusb-1.0-0 is already the newest version.
libusb-1.0-0 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.