Click or drag to resize

SetProtocol

Specifies which VISA I/O protocol to use.


				virtual HRESULT SetProtocol(VisaIoProtocol eProtocol) abstract;
			
Parameters
eProtocol

[in] I/O protocol to use.

Return Value

Returns S_OK if successful, otherwise a failure HRESULT.

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

The following example demonstrates use of the SetProtocol function.

C++
// CoAcme4321.cpp
STDMETHODIMP Acme4321::IAcme4321_OnFinalInitialize()
{
  HRESULT hr = S_OK;

  hr = io.SetProtocol(VisaProtocolNormal);

  return hr;
}
See Also

Download a complete CHM version of this documentation here.