Zum Inhalt springen

(DM3058-Fernsteuerung) Kapitel 6 Anwendungsbeispiele:: Unterschied zwischen den Versionen

Aus Mein Projekte Wiki
Peter (Diskussion | Beiträge)
Peter (Diskussion | Beiträge)
Zeile 7: Zeile 7:
<pre>
<pre>
The programming implementations—— RIGOL Commands  
The programming implementations—— RIGOL Commands  
0 *RST                          /* Reset the instrument*/  
0 *RST                          /* Reset the instrument*/  
1 cmdset rigol                  /* Select RIGOL commands */  
1 cmdset rigol                  /* Select RIGOL commands */  
2 *IDN?                        /* Query the equipment ID and confirm if the multimeter works normally */  
2 *IDN?                        /* Query the equipment ID and confirm if the multimeter works normally */  
3                              /*Return Format:RIGOL Technologies, DM3058, DM3A020080808, 99.00.00.00.00.00*/  
3                              /*Return Format:RIGOL Technologies, DM3058, DM3A020080808, 99.00.00.00.00.00*/  
4 :function:voltage:DC          /* Enable the DC voltage measurement */  
4 :function:voltage:DC          /* Enable the DC voltage measurement */  
5 :measure AUTO                /* Select Auto measurement */  
5 :measure AUTO                /* Select Auto measurement */  
6 :calculate:function max      /* Enable the maximum statistic */  
6 :calculate:function max      /* Enable the maximum statistic */  
7 :calculate:statistic:max?    /* Query the current maximum of DC voltage */  
7 :calculate:statistic:max?    /* Query the current maximum of DC voltage */  
8                              /*Return Format:5.000064e-02*/  
8                              /*Return Format:5.000064e-02*/  
9 :calculate:statistic:count?  /* Query the current times of Auto measurement*/  
9 :calculate:statistic:count?  /* Query the current times of Auto measurement*/  
10                             /*Return Format:252*/  
10                               /*Return Format:252*/  
11 :calculate:function none     /* Exit the math function */
11 :calculate:function none     /* Exit the math function */
</pre>
</pre>



Version vom 11. Januar 2025, 20:06 Uhr

Kapitel 6 Anwendungsbeispiele

Dieses Kapitel enthält einige Messbeispiele auf der Grundlage von Befehlen, die Ihnen helfen, das Multimeter effektiv zu nutzen. Diese Anwendungen setzen voraus, dass Sie mit den grundlegenden Funktionen des Multimeters vertraut sind. Die Seriennummer vor jedem Befehl dient zur Nummerierung des aktuellen Befehls, nicht des Befehlsinhalts. Der Inhalt zwischen „/ *“ und „* /“ nach jedem Befehl dient als Erklärung, um den Benutzern das Verständnis zu erleichtern. Schließen Sie vor der Verwendung dieser Beispiele das zugehörige Testgerät und das zu testende Gerät korrekt an.


Beispiel 1: Auslesen der Statistik

Zweck: Implementierung der Maximalstatistik durch Befehle. Wenn die Maximalstatistik aktiviert ist, wird der erste Messwert als angezeigter Maximalwert betrachtet und dann wird dieser Wert zusammen mit den gemessenen Messwerten kontinuierlich aktualisiert, bis der Maximalwert erfasst ist. Bitte führen Sie die folgenden Schritte Schritt für Schritt aus:

The programming implementations—— RIGOL Commands 
 0 *RST                          /* Reset the instrument*/ 
 1 cmdset rigol                  /* Select RIGOL commands */ 
 2 *IDN?                         /* Query the equipment ID and confirm if the multimeter works normally */ 
 3                               /*Return Format:RIGOL Technologies, DM3058, DM3A020080808, 99.00.00.00.00.00*/ 
 4 :function:voltage:DC          /* Enable the DC voltage measurement */ 
 5 :measure AUTO                 /* Select Auto measurement */ 
 6 :calculate:function max       /* Enable the maximum statistic */ 
 7 :calculate:statistic:max?     /* Query the current maximum of DC voltage */ 
 8                               /*Return Format:5.000064e-02*/ 
 9 :calculate:statistic:count?   /* Query the current times of Auto measurement*/ 
10                               /*Return Format:252*/ 
11 :calculate:function none      /* Exit the math function */