Products > Test Equipment
SainSmart DDS120 & DDS140 USB Oscilloscope
<< < (34/84) > >>
ganzuul:
\ ;D /

Got it to compile on Windows using QtCreator!

You want this version of Qt and MinGW:
http://sourceforge.net/projects/qtx64/files/qt-x86/5.3.2/mingw-4.9/dwarf/qt-5.3.2-x86-mingw491r1-dw2-opengl.exe/download

See the screenshots for hints. Ask question if it's unclear. This took a LOT of fiddling to get right so I'm probably overlooking something.

Get this version of FFTW:
ftp://ftp.fftw.org/pub/fftw/fftw-3.3.4-dll32.zip

(Note that you must create .lib files using MS Visual Studio. I believe the Express C++ version has the lib.exe program which does this. Issue 'vcvars32.bat' in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin to set up the path. Then, lib /def:libfftw3-3.def etc. in the fftw-3.3.4-dll32 folder to create the lib file.)

Get this version of LibUSB:
http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.18/

And the attached, zipped .pro file.

See the #Configuration section of the .pro file for where I put LibUSB and FFTW.

I'll see about getting the precompiled binary uploaded. Getting the compiler set up right was such a hassle that I don't expect a lot of users to be able to do it. There are however security considerations to observe for Win32 stuff which I should to go through before uploading.


ED:
Stopping and starting both work in Windows, as does Digital phosphor.

ED2:

ED3:
This should be reasonable security.

https://nya.dy.fi/secure/Ledioskope.zip
user: eevblog
pass: eevblog

CRC32: EE3DAF51
MD5: 6D5F867C992EF571A0824202BC863221
SHA-1: 09FF567F9936E4A820EB5C267B81064BECB31CFE
doctormord:
That's some great news! Thanks for the efforts, really appreciate.

I wonder if we could have precompiled .libs for this, so building would be easier. Isn't this just because reference calls to lib functions in the build process?

QT'n'stuff is not my business. ::)
ganzuul:
I think that's all it does... This post has the needed .lib file. I presume it works with other instances of Windows!

Note I edited my post and added a link to my server. Ledioskope.zip contains the binary and the .dlls it needs. My server's SSL cert has the  following SHA-256 fingerprint:

8F:42:26:3D:09:F2:2D:5B:1E:CB:CE:04:5E:9F:B4:50:70:E7:B8:40:82:83:BB:B2:FF:24:49:70:85:D9:4D:F4
psynapse:
Doctormord

That is very strange, I can decompress both my original local copy of scope2.zip and a copy I just downloaded from this board;

ON everything else you say , I 100% agree with you.

Jimon,

I have one of those cute little FX2LP board, very pretty very cheap.  I had the same idea as you ..... but my board has the 56 pin device with port A, B and D.  Our scopes, be they 120 or 140 have the 100 pin device with ports C and E as well,  which are used by the default firmware.  So be careful about hacking the board!

Ganzuul

Good work ... Is it possible to share the QT5 source, so that we can give it a go under linux.


All

Even ignoring the Sainsmart software (and that is a really good idea) we have, I think, 4 versions of PC based code now (Donut6 WX, Mmark QT5, Psynapse QT5 and Ganzuul QT5)  and I think I have missed a fifth, my apologies, I have just looked at the current page.  I am quite happy to carry on with my own thread, but do we, as a community, want to start putting our weight behind one version? Or maybe two?  I am guessing that the only two key criteria are that the version we choose needs to run under linux and windows and on both the DDS120 and the 140.  I would want to have the ability to add my "odd" extensions, but with shared source this will not be a problem.  All that said, I would not want to explode the goodwill in this forum in order to force this idea, it is far too good a place to bounce ideas around in!

For information:- I have now proved (on the 140) that the wave table loaded to the GPIF with the 94 0A command can be rewritten "dynamically" , that is to say my app can now adjust the sampling rate between 10 and 200 FX2 clock periods.  This is in addition to the standard clock rates of 200,100,10 Mhz, 625k and 39k which are independently derived from a 80MHZ crystal on the CPLD. I have yet to try less than 10 (I know I cannot go below 4) or above 200, But it looks as though we can get additional ranges at (approximately) 5,2,1,0.5,0.25 Msps.  For mmark, my code is very short and simple

case65:                               ; this command (65) tampers with the continuous mode timebase.  The sample time is (1+1+param+param)/48Mhz   
   mov     DPTR,   #SETUPDAT2   ;get pointer to the single input parameter, which is the second byte of the USB message
   movx   A, @DPTR               ;get the input parameter itself. We should check its validity here, zero would be BAD
   mov           DPTR, #021ECh      ; A pointer to within the (RAM copy) alternate waveform table
   movx   @DPTR,A         ; store the number of cycles for T1 in the GPIF waveform
   inc      DPTR
   movx   @DPTR,A         ; store the number of cycles for T2 in the GPIF waveform
   lcall     reload                  ; reload the wave tables
   ljmp    send_ack

doctormord:

--- Quote from: psynapse on November 12, 2014, 10:08:22 pm ---Doctormord

That is very strange, I can decompress both my original local copy of scope2.zip and a copy I just downloaded from this board;

--- End quote ---

Well, downloaded again and get the same errors on the same files on linux and windows. (Even on C:\ .. )

Beside this, i would like to see the power of your coding skills in 1 (or 2) version. Would make things easier alot. As my coding skills are limited to mikrocontrollers and C#, i would help on the interface (GFX).

The last serious stuff i did (beside my amplifiers), was an uC controlled motordriver with PC-interface. (The GUI is only POC)





The idea behind is to use the motordriver (from CD-ROM) as an actor-controller -> XY galvanometer being fully modular. (Baseboard, Controller, Actor-Driver)

I put together a small presentation for our lectures:

https://dl.dropboxusercontent.com/u/5641160/Galva-O-Magic.pdf

@ganzuul

Thanks!  ;)
Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod