W2000A communication protocol / windows- and LabVIEW library

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

Translate original post with Google Translate

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 (13)

LabVIEW-Bibliothek für W2000A

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

Translate original post with Google Translate

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: w2000a_labview.zip

Comments (0)

Windows DLL zur Ansteuerung des W2000A

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

Translate original post with Google Translate

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.

Download der jeweils neuesten Version: w2000a_dll.zip

Comments (0)

W2000A Kommunikationsprotokoll

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

Translate original post with Google Translate

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 zur Verfügung. Diese ist via W2000A_Commands erreichbar.

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

Comments (2)