Gwyscope documentation

open hardware SPM controller with advanced sampling support

User Tools

Site Tools


simple_connect

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.

Used commands and their parameters:

get: hwtime, for accessing the server start time

read: e, for reading value of the error signal

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 simple client implementations in C and in Python.

simple_connect.txt · Last modified: 2026/06/01 15:08 by pklapetek