[out] I/O protocol currently in use.
GetProtocol
Gets the currently configured VISA I/O protocol.
Syntax
Section titled “Syntax”virtual HRESULT GetProtocol(VisaIoProtocol* peProtocol) abstract;Parameters
Section titled “Parameters”peProtocol
Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Remarks
Section titled “Remarks”In VXI systems, for example, you can choose between normal word serial or fast data channel (FDC). In GPIB, you can choose between normal and high speed (HS488) data transfers. In ASRL and TCPIP systems, you can choose between normal and 488-style transfers.
Example
Section titled “Example”The following example demonstrates use of the GetProtocol function.
STDMETHODIMP Acme4321::IAcme4321_OnFinalInitialize(){ HRESULT hr = S_OK;
VisaIoProtocol eProtocol; hr = io.GetProtocol(&eProtocol);
return hr;}