MicroControl:API Documentation: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(Created page with "[[category::MircoControl]] A typical callback to request lots of data from <source lang="python"> def OnRequest(self, evt): TCP.Send(XML.Request('get',position=(),...")
 
No edit summary
Line 1: Line 1:
[[category::MircoControl]]
[[category::MircoControl]]
Sending the message
Waiting for the request


A typical callback to request lots of data from  
A typical callback to request lots of data from  

Revision as of 20:20, 10 January 2011

[[category::MircoControl]]


Sending the message

Waiting for the request


A typical callback to request lots of data from

<source lang="python">

   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>