13.07.2015 Aufrufe

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

DG8SAQ VECTOR NETWORK ANALYZER VNWA HILFE - SDR-Kits

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

Controlling the <strong>VNWA</strong> by Windows MessagesDas Steuern des <strong>VNWA</strong> durch Windows-NachrichtenThe Windows Message Interface:Basic Concept of Windows MessagesDer Windows-Befehl "PostMessage" erlaubt, ein Kurztelegramm an jedes spezifische sichtbare oder nichrsichbare window, zu senden:BOOL WINAPI Postmessage(__ in_opt HWND hWnd,__ in UINT Msg,__ in WPARAM wParam,__ in LPARAM lParam);Parameter-Beschreibung:- hWnd ist der Fenstergriff (oder Adresse), so kann das spezifische Fenster erreicht werden.- Msg ist eine einzigartige Nachrichtenanzahl, auf die <strong>VNWA</strong> bereit ist, reagieren.- wParam und lParam sind zwei 4-Byte-Konstanten der ganzen Zahl, die an <strong>VNWA</strong> gesandt werden können:wParam wird als Befehl <strong>VNWA</strong> interpretiert.lParam wird als ein optionaler Parameter für den Befehl <strong>VNWA</strong> interpretiert.Implemented <strong>VNWA</strong> remote commands:wParam: Command: lParam:0 terminate <strong>VNWA</strong> n.a.1 sweep bits:select 0:S21, 1:S11, 2:S12, 3:S222 load cal [rfile] n.a.3 load mastercal [rfile] n.a.4 write s2p [wfile] n.a.5 write s1p [wfile] value:selects Bit 0:S21, Bit 1:S11, Bit 2:S12, Bit 3:S226 change rfile string 256: clear string0….255: add char(lParam) to string7 change wfile string 256: clear string0….255: add char(lParam) to string8 set start frequency start frequency [Hz]9 set stop frequency stop frequency [Hz]10 set number of points number of points11 set sweep mode 0: Lin, 1: Log12 set time per data point time [microseconds]13 read and execute [rfile] script file (*)14 set RF DDS frequency [Hz]15 set LO DDS frequency [Hz]16 set <strong>VNWA</strong> frequency [Hz] RF and LO DDS are being set simultaneously with IF offset17 set TX power Amplitude = 0...1638318 continuous sweep bits:select Bit 0:S21, Bit 1:S11, Bit 2:S12, Bit 3:S2219 stop continuous sweep 0: stop after sweep completion, 1: stop immediately255 echo (wParam & 0xFFFF) | 0x10000 and lParam by PostMessage back to sender (for debuggingwhile software development)(*) Für Details über das script file syntax siehe Seite Controlling the <strong>VNWA</strong> by a Script File.wfile ist ein write file name, einschließlich des innerhalb der <strong>VNWA</strong> Anwendung gehaltenen Pfads, während esläuft. Das ist die Datei, wo gemessene S-Parameter können dazu gespeichert werden. Der Dateiname kann überden entfernten Befehl 4 modifiziert werden.rfile ist ein read file name einschließlich des innerhalb der <strong>VNWA</strong> Anwendung gehaltenen Pfads, während esläuft. Das ist die Datei, wo ein Kalibrierung oder mastercalibration werden davon gelesen. Der Dateiname kannüber den entfernten Befehl 5 modifiziert werden.Return Message=AcknowledgementWhen <strong>VNWA</strong> is being launched for remote operation, it will send a Windows message back to the handle of thecalling program passed to <strong>VNWA</strong> (ownhandle). This message contains the handle of the <strong>VNWA</strong> application andthe message number <strong>VNWA</strong> listens to.Also, every remote command sent to <strong>VNWA</strong> is acknowledged by a return message containing an error code.WParam:- 369 -

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!