You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/manual/writing_a_driver.rst
+7-2
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ To turn it into a server, we use :class:`artiq.management.pc_rpc`. Import the fu
23
23
and add a ``main`` function that is run when the program is executed: ::
24
24
25
25
def main():
26
-
simple_server_loop(Hello(), "::1", 7777)
26
+
simple_server_loop(Hello(), "hello", "::1", 7777)
27
27
28
28
if __name__ == "__main__":
29
29
main()
@@ -49,6 +49,11 @@ and verify that you can connect to the TCP port: ::
49
49
50
50
:tip: Use the key combination Ctrl-AltGr-9 to get the ``telnet>`` prompt, and enter ``close`` to quit Telnet. Quit the controller with Ctrl-C.
51
51
52
+
Also verify that you can get the type of the server (the "hello" string passed to ``simple_server_loop``) using the ``identify-controller`` program from the ARTIQ front-end tools: ::
53
+
54
+
./identify-controller ::1 7777
55
+
Type: hello
56
+
52
57
The client
53
58
----------
54
59
@@ -62,7 +67,7 @@ Create a ``hello-client`` file with the following contents: ::
0 commit comments