XMLRPC Server
xmlrpc_server
import SimpleXMLRPCServer
import threading
SimpleXMLRPCServer.SimpleXMLRPCServer(($addr, $port), allow_none=True)
self.$(id).register_instance(self)
threading.Thread(target=self.$(id).serve_forever).start()
Address
addr
localhost
string
Port
port
8080
int
This block will start an XMLRPC server. \
The server provides access to the run, start, stop, wait functions of the flow graph. \
The server also provides access to the variable callbacks in the flow graph. \
Ex: If the variable is called freq, the function provided by the server will be called set_freq(new_freq).
Example client in python:
import xmlrpclib
s = xmlrpclib.Server("http://localhost:8080")
s.set_freq(5000)