MicroControl:API Documentation

From KitwarePublic
Revision as of 18:25, 11 January 2011 by Dhanannjay.deo (talk | contribs)
Jump to navigationJump to search

[[category::MircoControl]]


Sending the message

Waiting for the request


A typical callback to request lots of data from

<source lang="python" enclose="div" >

   def OnRequest(self, evt):
       TCP.Send(XML.Request('get',position=(),scan=(),image=(),field=(), size=(), lasers=()))
       print 'Starting to read ..'
       TCP.Read(self.TopParent,DataReadyEvent(num=0))

</source>