Package VisionEgg :: Module DaqOverTCP :: Class DaqConnection
[frames | no frames]

Class DaqConnection


Method Summary
  __init__(self, hostname, port)
  arm(self, num_channels, sample_rate_hz, duration_sec, trigger_num)
  close_socket(self, command)
  parse_data(self)
  quit_server(self)
  set_gain(self, gain)

Class Variable Summary
int ARMED = 4                                                                     
SRE_Pattern begin_data_prompt = ^BEGIN ASCII DATA \(32 bit big-endia...
int BUFSIZE = 4096                                                                  
int COMMAND_PROMPT = 2                                                                     
SRE_Pattern command_prompt = ^daqserv> 
str CRLF = '\r\n'
SRE_Pattern end_data_prompt = ^END ASCII DATA$
int NOT_CONNECTED = 1                                                                     
SRE_Pattern re_crlf = \r\n
int READY = 3                                                                     
SRE_Pattern ready_prompt = ^ready> 

Class Variable Details

ARMED

Type:
int
Value:
4                                                                     

begin_data_prompt

Type:
SRE_Pattern
Value:
^BEGIN ASCII DATA \(32 bit big-endian signed int\)$                    

BUFSIZE

Type:
int
Value:
4096                                                                  

COMMAND_PROMPT

Type:
int
Value:
2                                                                     

command_prompt

Type:
SRE_Pattern
Value:
^daqserv>                                                              

CRLF

Type:
str
Value:
'''\r
'''                                                                    

end_data_prompt

Type:
SRE_Pattern
Value:
^END ASCII DATA$                                                       

NOT_CONNECTED

Type:
int
Value:
1                                                                     

re_crlf

Type:
SRE_Pattern
Value:
\r\n                                                                   

READY

Type:
int
Value:
3                                                                     

ready_prompt

Type:
SRE_Pattern
Value:
^ready>                                                                

Generated by Epydoc 2.0 on Fri Sep 19 18:29:36 2003 http://epydoc.sf.net