{"id":55520,"date":"2020-09-17T07:04:09","date_gmt":"2020-09-17T05:04:09","guid":{"rendered":"https:\/\/ar3dp.de\/docs\/software-bibliotheken\/toellner\/toellner-bibliothek\/"},"modified":"2020-09-17T07:04:09","modified_gmt":"2020-09-17T05:04:09","slug":"toellner-bibliothek","status":"publish","type":"docs","link":"https:\/\/ar3dp.de\/en\/docs\/software-bibliotheken\/toellner\/toellner-bibliothek\/","title":{"rendered":"SCPI-Bibliothek (f\u00fcr Toellner geeignet)"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Hier finden Sie die Funktions-Beschreibung und Dokumentation f\u00fcr unsere SCPISharp Bibliothek (C# DLL), welche Sie im Downloadbereich herunterladen k\u00f6nnen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">General<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sie k\u00f6nnen diese DLL in jedes C# Projekt einbinden. Folgend finden Sie eine \u00dcbersicht aller Funktionen mit einer kleinen Beschreibung.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> Bitte beachten Sie, die DLL ist optimiert f\u00fcr ein Toellner TOE 8952. Sollten hier Abweichungen zu Ihrem Netzteil auftreten, so schreiben Sie uns. Wir aktualisieren dann die Bibliothek f\u00fcr Sie.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Constructor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Die Klasse <em>SCPIClient <\/em>kommt mit zwei Konstruktoren.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public SCPIClient(string serialPortName, int baudrate)<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Der Standard-Konstruktor, welcher oben ausgewiesen ist, verwendet folgende Standardeinstellungen f\u00fcr die COM-Schnittstelle.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Parity Bit: Keins<\/li>\n\n\n\n<li>Data Bits: 8<\/li>\n\n\n\n<li>Stop Bits: 1<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Sollten diese Parameter f\u00fcr Sie nicht passend sein, so k\u00f6nnen Sie den erweiterten Konstruktor unten verwenden.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public SCPIClient(string serialPortName, int baudrate, Parity parity, int dataBits, StopBits stopBits)<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Properties<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Die &#8216;<em>SCPIClient&#8217; <\/em>Klasse bietet folgende Eigenschaften.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">IsInitialized<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Eigenschaft sagt aus, dass die Klasse initialisiert ist und eine COM-Kommunikation zu dem angegebenen COM-Port ge\u00f6ffnet werden konnte.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Methoden<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Statische Methoden<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Methoden k\u00f6nnen Sie nutzen, ohne das Sie die <em>Toellner<\/em> Klasse initialisiert haben.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">GetAvailablePorts()<\/h4>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public static string[] GetAvailablePorts()<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Funktion liefert ein string-Array mit allen verf\u00fcgbaren seriellen Schnittstellen auf der aktuellen Maschine.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">GetOutputs()<\/h4>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public static string[] GetOutputs()<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Funktion liefert ein string-Array mit den verf\u00fcgbaren Output-Namen (OUT1, OUT2 usw.). <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Dynamische Methoden<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Folgende Methoden k\u00f6nnen \u00fcber das <em>Toellner<\/em> Objekt verwendet werden.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Init()<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public bool Init(string serialPortName, int baudrate)\npublic bool Init(string serialPortName, int baudrate, Parity parity, int dataBits, StopBits stopBits)<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Funktion initialisiert die COM-Schnittstelle neu. Dies ist nur notwendig, wenn Sie unter Laufzeit die Schnittstelle \u00e4ndern wollen, da diese Funktion beim Initialisieren der Klasse automatisch aufgerufen wird.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SetOutputLevel()<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public bool SetOutputLevel(Output output, double voltage, bool turnOutputOn = false)\npublic bool SetOutputLevel(string outputName, double voltage, bool turnOutputOn = false)<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Funktion setzt die Spannung am angegebenen Ausgang auf den Wert, welchen Sie bei <em>Voltage <\/em>angegeben. Mit dem optionalen Parameter <em>TurnOutputOn <\/em>k\u00f6nnen Sie direkt auch dein Ausgang scharf schalten. Bitte beachten Sie, solange der Ausgang aus ist, wird die Spannung nicht am Toellner Netzteil angezeigt!<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public bool SetOutputLevel(Output output, double voltage, double current, bool turnOutputOn = false)\npublic bool SetOutputLevel(string outputName, double voltage, double current, bool turnOutputOn = false)<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Des Weiteren haben Sie auch noch die M\u00f6glichkeit den Strom mit dem Parameter <em>Current <\/em>anzugeben.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">GetValue()<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public double GetValue(Output output, ValueTarget target)<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Funktion liest einen Wert vom Toellner Netzteil zur\u00fcck. Zur Auswahl stehen folgende <em>ValueTarget&#8217;s<\/em>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Voltage<\/li>\n\n\n\n<li>Current<\/li>\n\n\n\n<li>Power<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">ToggleOutputs()<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public bool ToggleOutput(bool state)<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Mit dieser Funktion k\u00f6nnen Sie den Ausgang ein- bzw. ausschalten. Ist der boolesche Wert <em>state  <\/em><strong>true<\/strong>, dann wird der Ausgang aktiv geschalten.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">RemoteClear()<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public bool RemoteClear()<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Funktion gibt die <em>RemoteControl <\/em>\u00fcber die serielle Schnittstelle wieder frei, so dass das Netzteil wieder h\u00e4ndisch gesteuert werden kann.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SendCommand()<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public void SendCommand(string command)<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Mit Hilfe dieser Funktion k\u00f6nnen Sie SCPI Kommandos direkt als Klartext \u00fcbertragen. Bitte beachten Sie, dass die Funktion die Syntax nicht verifiziert. Sie m\u00fcssen selbst pr\u00fcfen, ob Ihr Kommando den SCPI Richtlinien entspricht.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Close()<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;C#&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;csharp&quot;}\">public bool Close()<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Funktion schlie\u00dft die serielle Kommunikation und gibt den COM-Port wieder frei.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Download<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sie k\u00f6nnen die Toellner Bibliothek (C# DLL) in unserem Software-Depot herunterladen. Folgen Sie dazu einfach folgenden Link:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/AndreasReitberger\/SCPISharp\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/github.com\/AndreasReitberger\/SCPISharp<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Hier finden Sie die Funktions-Beschreibung und Dokumentation f\u00fcr unsere SCPISharp Bibliothek (C# DLL), welche Sie im Downloadbereich herunterladen k\u00f6nnen. Allgemein Sie k\u00f6nnen diese DLL in jedes C# Projekt einbinden. Folgend finden Sie eine \u00dcbersicht aller Funktionen mit einer kleinen Beschreibung. Bitte beachten Sie, die DLL ist optimiert f\u00fcr ein Toellner TOE 8952. Sollten hier Abweichungen&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":55519,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_featured":false,"_is_vendor_doc":"0","footnotes":""},"doc_tag":[],"class_list":["post-55520","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs\/55520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/comments?post=55520"}],"version-history":[{"count":1,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs\/55520\/revisions"}],"predecessor-version":[{"id":59123,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs\/55520\/revisions\/59123"}],"up":[{"embeddable":true,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs\/55519"}],"wp:attachment":[{"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/media?parent=55520"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/doc_tag?post=55520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}