From 71a4762b76e46c0cab95e9fe9060c26f181ccbdf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Bi=C3=9Fwanger?= <bisswanger@physik.rwth-aachen.de>
Date: Fri, 4 Sep 2020 16:33:24 +0200
Subject: [PATCH] Update Stanford_SR560.ini Adapted and extended. Added listen
 all etc. and default settings. Changed termination to LF as it is obviously
 necessary for Labber ver. 1.7.7

---
 Stanford_SR560/Stanford_SR560.ini | 98 ++++++++++++++++++++++---------
 1 file changed, 71 insertions(+), 27 deletions(-)

diff --git a/Stanford_SR560/Stanford_SR560.ini b/Stanford_SR560/Stanford_SR560.ini
index 4cbd293..0b067a3 100644
--- a/Stanford_SR560/Stanford_SR560.ini
+++ b/Stanford_SR560/Stanford_SR560.ini
@@ -1,7 +1,15 @@
 # Instrument driver configuration file.
 #2019-01-31, Timo set up from SRS830
 #
-#This device is listen only!
+#The interface is configured as listen-only, 
+#########9600 baud DCE, 8-bit, no parity, 2 stop bits, ############
+#and is optically isolated to prevent any noise or grounding problems.
+#
+# Manual says: Commands must end with a carriage return and line feed <CR><LF>. 
+# But currently with the Labber Ver. 1.7.7 you must configure the serial communication with <LF> only!!!!
+
+
+#use USB-to-RS232 and set the before mentioned parameters also in the COM driver of the operating system, Flow Controle=none
 
 [General settings]
 
@@ -9,7 +17,7 @@
 name: Stanford Low-Noise Preamplifier SR 560
 
 # The version string should be updated whenever changes are made to this config file
-version: 1.0
+version: 1.1
 
 # Name of folder containing the code defining a custom driver. Do not define this item
 # or leave it blank for any standard driver based on the built-in VISA interface.
@@ -43,7 +51,8 @@ reset: True
 timeout: 5
 
 # Default termination character
-term_char: CR+LF
+#in Labber ver. 1.7.7 just LF, from Manual it should be CR+LF
+term_char: LF
 
 # Query instrument errors (True or False).  If True, every command sent to the device will
 # be followed by an error query.  This is useful when testing new setups, but may degrade
@@ -67,7 +76,7 @@ error_cmd:
 
 # Initialization commands are sent to the instrument when starting the driver
 # *RST will reset the device, *CLS clears the interface
-init: 
+init:LALL
 
 # Final commands sent to the instrument when closing the driver
 final: 
@@ -144,7 +153,7 @@ group: Input
 section: Input and Filter
 permission: WRITE
 
-[Filter mode] #should be fine
+[Filter mode]
 datatype: COMBO
 def_value: 12 dB low pass
 combo_def_1: bypass
@@ -164,7 +173,7 @@ group: Filters
 section: Input and Filter
 permission: WRITE
 
-[Highpass Cutoff] #fine?
+[Highpass Cutoff]
 #HFRQi Sets highpass filter frequency.
 #I = 0 – 11 sets frequency = 0.03
 #Hz to 10 kHz
@@ -200,7 +209,7 @@ section: Input and Filter
 show_in_measurement_dlg: True
 permission: WRITE
 
-[Lowpass Cutoff] #fine?
+[Lowpass Cutoff]
 #LFRQ i Sets lowpass filter frequency.
 #i = 0 – 15 sets frequency
 #= 0.03 Hz to 1 MHz
@@ -306,8 +315,8 @@ permission: WRITE
 datatype: BUTTON
 set_cmd: *RST 
 #Reset. Recalls default settings.
-group: Blank and reset
-section: others
+group: Reset
+section: Reset and Listen
 permission: WRITE
 tooltip: Recalls default settings.
 
@@ -315,29 +324,64 @@ tooltip: Recalls default settings.
 datatype: BUTTON
 set_cmd: ROLD 
 #ROLD Resets overload for ½ second.
-group: Blank and reset
-section: others
+group: Reset
+section: Reset and Listen
 permission: WRITE
 tooltip: Resets overload for ½ second.
 
-#[Listen All]
-#LALL Listen all. Makes all attached
-#SR560’s listeners.
-#group: Listen
-#section: others
+[Listen All]
+datatype: BUTTON
+set_cmd: LALL 
+#Reset. Recalls default settings.
+group: Listen
+section: Reset and Listen
+permission: WRITE
+tooltip: Sets all connected SR560 to listen.
 
-#[Make listener]
-#LISN i Listen command. Makes
-#SR560 with address i (0,1,2,3)
-#a listener.
-#group: Listen
-#section: others
+[Unlisten All]
+datatype: BUTTON
+set_cmd: UNLS 
+#Reset. Recalls default settings.
+group: Listen
+section: Reset and Listen
+permission: WRITE
+tooltip: Set unlisten to all connected SR560.
 
-#[Unlisten]
-#UNLS Unlisten. Unaddresses all
-#attached SR560’s.
-#group: Listen
-#section: others
+[Listen]
+datatype: COMBO
+def_value: 0
+combo_def_1: 0
+combo_def_2: 1
+combo_def_3: 2
+combo_def_4: 3
+cmd_def_1: 0
+cmd_def_2: 1
+cmd_def_3: 2
+cmd_def_4: 3
+set_cmd: LISN
+group: Listen
+section: Reset and Listen
+permission: WRITE
+tooltip: Sets selected SR560 to listen.
+
+
+[SV Defaults]
+datatype: BUTTON
+set_cmd: LALL;CPLG 0;GAIN 9;FLTM 2;LFRQ 12;SRCE 1;DYNR 0;
+#Reset. Recalls default settings.
+group: SV and Dirac
+section: Defaults
+permission: WRITE
+tooltip: Set default values for SV measurements.
+
+[Set Defaults]
+datatype: BUTTON
+set_cmd: LALL;CPLG 0;GAIN 0;FLTM 2;LFRQ 12;SRCE 1;DYNR 0;
+#Reset. Recalls default settings.
+group: SV and Dirac
+section: Defaults
+permission: WRITE
+tooltip: Set default values for Dirac measurements.
 
 #[Vernier Gain Status]
 #UCAL i Sets the vernier gain status.
-- 
GitLab