serialWrite
Top  Previous  Next

serialWrite ( string Output )

Use this function to write a string of characters to the currently open serial port.

Parameters
 
Output  
 
A string containing the data to be sent to the serial port.  
 
Error flags
 
ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  
 
ERR_NOTFOUND  
 
No open port found.  
 
Remark
 
To open and configure a serial port, use serialOpen.  
 
Example
 
serialOpen (1,"19200,N,8,1")  
If (getError()<>ERR_OK) Then  
 MsgBox ("Unable to open serial port")  
 End  
EndIf     
serialWrite("Serial port test")  
serialClose()