Device Connection
The device connection methods are used to establish an RPcoX ActiveX control to the desired device.
Important
The 'GB' argument is correct for the PO5 and PO5e Optical Gigabit interfaces. The PI5/FI5 are no longer supported in the current version of TDT Drivers and ActiveX.
ConnectRP2
Establishes a connection with an RP2 or RP2.1 Real-time Processor through a device interface (such as Optical Gigabit or USB). A device number identifies which RP2 is connected.
int ConnectRP2(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RP2 #1 via Optical Gigabit
RP=actxserver('RPco.x');
if RP.ConnectRP2('GB',1)
e='connected'
else
e='Unable to connect'
end
ConnectRA16
Establishes a connection with the Medusa Base Station (RA16BA) via the Gigabit or USB bus interface. Invoking this method causes the control to search for the 16-channel preamplifier typically connected to the base station and establish a handle to the associated device driver. The ConnectRA16 method will return 1 if a connection was successfully established or 0 if the device is not present or is not functioning properly.
int ConnectRA16(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
% Connects to RA16 #1 via Optical Gigabit
RL2=actxserver('RPco.x');
if RL2.ConnectRA16('GB', 1)
e= 'connected'
else
e= 'Unable to connect'
end
ConnectRL2
Establishes a connection with the Stingray Docking Station (RL2) via the Gigabit or USB bus interface. Invoking this method causes the control to search for the specified device and establish a handle to the associated device driver. The ConnectRL2 method will return 1 if a connection was successfully established or 0 if the device is not present or is not functioning properly.
int ConnectRL2(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
% Connects to RL2 #1 via Optical Gigabit
RL2=actxserver('RPco.x');
if RL2.ConnectRL2('GB', 1)
e= 'connected'
else
e= 'Unable to connect'
end
ConnectRV8
Establishes a connection with the Barracuda Processor (RV8) through the Gigabit or USB interface. Invoking this method causes the control to search for the Barracuda and establish a handle to the associated device driver. The ConnectRV8 method will return 1 if a connection was successfully established or 0 if the device is not present or is not functioning properly.
int ConnectRV8(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RV8 #1 via Optical igabit
RP=actxserver('RPco.x');
if RP.ConnectRV8('GB',1)
e='connected'
else
e='Unable to connect'
end
ConnectRM1
Establishes a connection with a Mini Processor (RM1) using the device's built in USB interface.
int ConnectRM1(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RM1 #1 via USB
RP=actxserver('RPco.x');
if RP.ConnectRM1('USB', 1)
e='connected'
else
e='Unable to connect'
end
ConnectRM2
Establishes a connection with a Processor (RM2) using the device's built-in USB interface.
int ConnectRM2(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RM2 #1 via USB
RP=actxserver('RPco.x');
if RP.ConnectRM2('USB', 1)
e='connected'
else
e='Unable to connect'
end
ConnectRX5
Establishes a connection with a Pentusa Base Station (RX5) through a device interface (such as Gigabit or USB).
int ConnectRX5(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RX5 #1 via Optical Gigabit
RP=actxserver('RPco.x');
if RP.ConnectRX5('GB',1)
e='connected'
else
e='Unable to connect'
end
ConnectRX6
ConnectRX6 establishes a connection with a MultiFunction Processor (RX6) through a device interface (such as Gigabit or USB).
int ConnectRX6(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RX6 #1 via Optical Gigabit
RP=actxserver('RPco.x');
if RP.ConnectRX6('GB',1)
e='connected'
else
e='Unable to connect'
end
ConnectRX7
Establishes a connection with a MicroStimulator Base Station (RX7) through a device interface (such as Gigabit or USB).
int ConnectRX7(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RX7 #1 via Optical Gigabit
RP=actxserver('RPco.x');
if RP.ConnectRX7('GB',1)
e='connected'
else
e='Unable to connect'
end
ConnectRX8
Establishes a connection with a Multi I/O Processor (RX8) through a device interface (such as Gigabit or USB).
int ConnectRX8(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RX8 #1 via Optical Gigabit
RP=actxserver('RPco.x');
if RP.ConnectRX8('GB',1)
e='connected'
else
e='Unable to connect'
end
ConnectRZ2
Establishes a connection with a RZ2 Base Station through a device interface (such as Gigabit or Optibit).
int ConnectRZ2(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RZ2 #1 via Optical Gigabit
RP=actxserver('RPco.x');
if RP.ConnectRZ2('GB',1)
e='connected'
else
e='Unable to connect'
end
ConnectRZ5
Establishes a connection with a RZ5 Base Station through a device interface (such as Gigabit or Optibit).
int ConnectRZ5(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RZ5 #1 via Optical Gigabit
RP=actxserver('RPco.x');
if RP.ConnectRZ5('GB',1)
e='connected'
else
e='Unable to connect'
end
ConnectRZ6
Establishes a connection with a RZ6 Base Station through a device interface (such as Gigabit or Optibit).
int ConnectRZ6(string Interface, int DevNum);
Arguments:
Returns:
Note: Invoke device connect commands only once to connect to a device, and then use ClearCOF and LoadCOF commands to upload or reload the control object to implement changes to the signal.
Example
%Connects to RZ6 #1 via Optical Gigabit
RP=actxserver('RPco.x');
if RP.ConnectRZ6('GB',1)
e='connected'
else
e='Unable to connect'
end