WriteSIO
Top  Previous  Next

Description

Writes the string of characters to the serial input/output port (SIO).


Syntax


[VB]
objActiveDcam.WriteSIO Output [, Timeout ]


[C/C++]
HRESULT WriteSIO( bstr strOutput, long Timeout );


Data Types
[VB]

Output: String
Timeout: Long (optional)


Parameters
[C/C++]

pOutput [in]  
The output string  
Timeout [in]  
The timeout in milliseconds. The function will try to write the data to the serial device for the specified period of time. If the data could not be written within that time, the timeout error flag will be raised. If this parameter is omitted, the timeout will never occur.  
 
   
Return Values


S_OK  
Success  
E_FAIL  
Failure.  
E_INVALIDARG  
Invalid input argument.  


Example


The following VB example configures the SIO and sends a string of characters to an external device.

ActiveDcam.Settings "9600,N,8,1"
ActiveDcam.WriteSIO "ActiveDcam is the most flexible 1394 SDK\r",1000
 

Remarks


This method is available only for cameras that have the SIO feature compliant with DCAM 1.31 specifications.