Gwyscope documentation

open hardware SPM controller with advanced sampling support

User Tools

Site Tools


simple_connect

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
simple_connect [2026/05/26 13:57] – created pklapeteksimple_connect [2026/06/01 15:08] (current) pklapetek
Line 1: Line 1:
 +===== Connection test =====
  
-====== Connection test ======+This simple clients tests the client-server connection.
  
 +It connects to the Gwyscope server and gets raw information about server start time. After that it reads 20 values of what is the actual “error signal” and exits. It can be used to learn how to set up the connection over Ethernet and how the Gwyfile object based messages used for communication are set up and passed through the connection.
  
-Client connects to the server and gets raw information about server start time. After that it reads 20 values of what is the actual “error signal” and exits.+Used commands and their parameters:
  
-Used commands:+''gethwtime'', for accessing the server start time
  
-get: hwtime +''read: e'', for reading value of the error signal
-read: e+
  
 Note that as the “error signal” depends on the actual operation regime, also called “mode” (proportional feedback, amplitude feedback, etc.), as defined in hwserver.ini file on the server, the reported value of error signal can have different meanings, to control it, set also “state” command as in the next examples. Similarly, the setpoint parameter and PID settings depend on actual realisation of the feedback loop, direction of the signals defined in hwserver.ini, etc.  Note that as the “error signal” depends on the actual operation regime, also called “mode” (proportional feedback, amplitude feedback, etc.), as defined in hwserver.ini file on the server, the reported value of error signal can have different meanings, to control it, set also “state” command as in the next examples. Similarly, the setpoint parameter and PID settings depend on actual realisation of the feedback loop, direction of the signals defined in hwserver.ini, etc. 
 +
 +To explore it further, see the [[https://sourceforge.net/p/gwyscope/code/HEAD/tree/simple_clients_c/|simple client implementations in C]] and [[https://sourceforge.net/p/gwyscope/code/HEAD/tree/simple_clients_python/|in Python]].
simple_connect.1779796628.txt.gz · Last modified: 2026/05/26 13:57 by pklapetek