Measurement-computing CB-NAP-7000P Manual de usuario Pagina 31

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 36
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 30
27
6.7 Receive_Str
Description:
This DLL will receive a re sult string from a general purpose RS-232 device. This DLL is very similar to
Receive_Cmd except that this DLL will not check result string terminator, 0x0d.
z Syntax:
WORD Receive_Str(char cPort, char szReceive[], WORD wTimeOut, WORD wLenR)
z Input Parameter:
cPort: 1=COM1, 2=COM2, 3=COM3, 4=COM4, others = invalidate
szReceive: the starting address of the original command string (terminated with 0)
wTimeOut: constant for time-out control, unit = 1ms
wLenR: string length of receive-string
z Return Value:
NoError : OK
others = Error code, refer to 7000W31.H
6.8 Send_Receive_Str
Description:
This DLL will send a c ommand to a general purpose RS-232 device and receive the response string. This DLL will
call Send_Cmd first. Then call Receive_Cmd next.
z Syntax:
WORD Send_Str(char cPort, char szCmd[], char szResult, WORD wTimeOut, WORD wLenT, WORD wLenR)
z Input Parameter:
cPort: 1=COM1, 2=COM2, 3=COM3, 4=COM4, others = invalidate
szCmd: the starting address of the original command string (terminated with 0)
szResult: the starting address of the result string (terminated with 0)
wTimeOut: constant for time-out control, unit = 1ms
wLenT: string length of send-string
wLenR: string length of receive-string
z Return Value:
NoError : OK
others = Error code, refer to 7000W31.H
Vista de pagina 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36

Comentarios a estos manuales

Sin comentarios