W2000A communication protocol / windows- and LabVIEW library

Filed under: Welec W2000A | Jochen @ 2008-07-11 6:55:24 pm

    As I’ve seen that there are a few international visitors here’s an english version of my articles.

    With the support from Welec (they’ve provided me the source code of the W2000PC application) I’ve put together an overview of the USB HID-communication protocol used by the Welec W2000A. It’s available as PDF-File and as OpenOffice.Org calc file.

    Based on this information I’ve written a small Windows DLL to communicate with the W2000A. Beside the print feature everything supported by the W2000PC application is also possible with this library.

    On top of this library I’ve created an LabVIEW-library capable of controlling the scope. This library is still at the beginning so help is really appreciated.

    All this information is released as Open Source under the GPLv3 license. If you make any changes to the code or the protocol overview, please send me back these changes so I can integrate them in my code.

    Finally here are the links to the files and the mercurial (http://www.selenic.com/mercurial) repository:

    Comments (11)

    LabVIEW-Bibliothek für W2000A

    Filed under: Welec W2000A | Jochen @ 2008-07-10 8:18:22 pm

      Als letztes “Schmankerl” gibt es heute noch die (noch sehr rudimentäre) Labview-Bibliothek. Prinzipiell sind alle Funktionen der DLL gekapselt, aber noch nicht wirklich groß getestet. Immerhin funktioniert der Download der aktuellen Kurven schon recht gut.

      Auch hier gilt, die Bibliothek ist frei verfügbar. Die Verwendung erfolgt komplett auf eigene Gefahr. Änderungen, die mir wieder zurückgespielt werden, übernehme ich gerne in das “offizielle” Repository.

      Download der letzten Version: https://hg.schaeuble.info/w2000a_labview/archive/tip.zip
      Repository: https://hg.schaeuble.info/w2000a_labview/

      Comments (0)

      Windows DLL zur Ansteuerung des W2000A

      Filed under: Welec W2000A | Jochen @ 2008-07-10 8:13:29 pm

        Hier nun der versprochene Source-Code zur Windows-DLL. Diese ist so geschrieben, dass sie leicht mit LabVIEW zusammen verwendet werden kann. Da der Zugriff auf den USB-Port direkt via den Standard-DLLs passiert, wird außer dem Windows DDK (http://www.microsoft.com/whdc/devtools/ddk/default.mspx) nichts weiter benötigt. Insofern sollte auch der Umstieg auf libusb nicht allzu kompliziert sein (Freiwillige? ;-) ).

        Geschrieben wurde das ganze mit dem kostenlosen Visual Studio Express C++ (http://www.microsoft.com/Express/). Der Kauf einer kostenpflichtigen Software ist also nicht erforderlich.

        Der ganze Code steht unter GPLv3 (http://www.fsf.org/licensing/licenses/gpl.html). Kann also beliebig verändert werden. Ich bitte lediglich darum, dass mir Änderungen wieder zurückgespielt werden, damit ich sie mit in die “Offizielle” Version einbauen kann.

        Der Source-Code selbst steht im Mercurial-Repository unter https://hg.schaeuble.info/w2000a_dll. Der Download ist als Archiv oder direkt via mercurial (http://www.selenic.com/mercurial) möglich.

        Download der jeweils neuesten Version: https://hg.schaeuble.info/w2000a_dll/archive/tip.zip

        Comments (0)

        W2000A Kommunikationsprotokoll

        Filed under: Welec W2000A | Jochen @ 2008-07-09 8:08:41 pm

          Mit freundlicher Unterstützung von Welec (http://www.welec.de) habe ich eine Aufstellung des USB HID-Protokolls zur Ansteuerung des Welec W2000A-Oszilloskop erstellt. Auf dieser Basis enstand dann eine Windows- (DLL) und eine LabVIEW-Bibliothek zur Ansteuerung des Oszilloskops. Diese wird es in Kürze (wahrscheinlich ab Morgen) im Source-Code zum Download geben.

          Datei: Welec W2000A USB HID-Protokoll

          Das Original der Datei steht auch als OpenOffice.Org-Calc-Datei in der Versionsverwaltung zur Verfügung. Diese ist via https://hg.schaeuble.info/w2000a_commands erreichbar.

          Da ich dieses Projekt als Hobby betreibe, würde ich mich über Kommentare und Änderungswünsche sehr freuen.

          Comments (0)

          miniVNA / ZPlots+ / Excel 2007

          Filed under: Amateurfunk | Jochen @ 2008-03-03 9:29:06 pm

            Zur Vermessung meiner (selbst gebauten) Antennen – zugegeben, es sind noch nicht sonderlich viele – verwende ich seit einiger Zeit einen miniVNA von mini Radio Solutions (http://www.miniradiosolutions.com). Zur Darstellung der Messergebnisse als Smith Diagramm kommt bei mir ZPlots+, ein Excel-Tool von Dan Maguire, AC6LA, (http://www.ac6la.com/zplots.html) zum Einsatz. Dieses hat jedoch mit Excel 2007 so seine Schwierigkeiten. Genauer verweigert die Originalversion von Dan komplett die Arbeit, sobald man die Grafiken auswerten will. Also habe ich mich daran gemacht, die Teils sehr abstrusen Fehler zu korrigieren. Das Ergebnis dieser Arbeit gibt es jetzt hier zum Download.

            Für detailliertere Informationen über ZPlots+ sei hier auf die Homepage von Dan verwiesen.

            ZPlots+ v1.2 (Office 2007)


            Since a while I use a miniVNA from mini Radio Solutions (http://www.miniradiosolutions.com) to measure my (home made) antennas. To display the measurement results as Smith Chart I use the Excel Tool ZPlots+ from Dan Maguire, AC6LA, (http://www.ac6la.com/zplots.html). As this tool is quite complex, and Excel 2007 is still quite buggy, I was not able to run ZPlots+ on my Excel 2007 installation without (sometimes obscure) modifications. The result of these “hacks” can be found below.

            For more details about ZPlots+, including an extensive documentation, please take a look at Dans website.

            ZPlots+ v1.2 (Office 2007)

            Comments (5)