Assembly: Quanser.Targets (in Quanser.Targets.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub Connect ( _ uri As String, _ send_buffer_size As Integer, _ receive_buffer_size As Integer _ ) |
C# |
---|
public void Connect( string uri, int send_buffer_size, int receive_buffer_size ) |
Visual C++ |
---|
public: void Connect( String^ uri, int send_buffer_size, int receive_buffer_size ) |
JavaScript |
---|
function connect(uri, send_buffer_size, receive_buffer_size); |
Parameters
- uri
- Type: System..::.String
The URI of the QUARC Target.
- send_buffer_size
- Type: System..::.Int32
The buffer size to use when sending commands to the target.
- receive_buffer_size
- Type: System..::.Int32
The buffer size to use when receiving data from the target.
Remarks
This method connects to a QUARC Target. The Target instance must be connected before any of the other methods may be called.
To connect to a QUARC Target, the URI of the target must be provided. The URI specifies the communications protocol and options. For example, "tcpip://myremotetarget:17000" would connect to the remote target whose hostname is "myremotetarget" using TCP/IP and port 17000.
The Target instance uses buffers when sending commands and receiving data from the QUARC Target. The size of these buffers may be specified when connecting to the target. A typical buffer size would be 8000 bytes.