Download VISA for the Component Object Model
Transcript
Section 5: VISA COM I/O Resource Classes
Page 5-17
address")]
HRESULT Address([out, retval] BSTR *pVal);
[propget, helpcontext(HlpCtxITcpipInstr + 2), helpstring("Get the TCP/IP
hostname")]
HRESULT HostName([out, retval] BSTR *pVal);
[propget, helpcontext(HlpCtxITcpipInstr + 3), helpstring("Get the LAN
device name")]
HRESULT DeviceName([out, retval] BSTR *pVal);
};
The following table lists all the ITcpipInstr COM properties and their equivalent VISA attributes.
ITcpip Property
Address
HostName
DeviceName
VISA Attribute
VI_ATTR_TCPIP_ADDR
VI_ATTR_TCPIP_HOSTNAME
VI_ATTR_TCPIP_DEVICE_NAME
Table 5.1.13
5.1.11. IUsb Interface
[
object,
oleautomation,
helpstring("USB Interface"),
uuid(db8cbf24-d6d3-11d4-aa51-00a024ee30bd),
helpcontext(HlpCtxIUsb + 49),
pointer_default(unique)
]
interface IUsb : IVisaSession
{
[propget, helpcontext(HlpCtxIUsb + 1), helpstring("Get the manufacturer
ID")]
HRESULT ManufacturerID([out, retval] short *pVal);
[propget, helpcontext(HlpCtxIUsb + 2), helpstring("Get the manufacturer
name")]
HRESULT ManufacturerName([out, retval] BSTR *pVal);
[propget, helpcontext(HlpCtxIUsb + 3), helpstring("Get the model code")]
HRESULT ModelCode([out, retval] short *pVal);
[propget, helpcontext(HlpCtxIUsb + 4), helpstring("Get the model name")]
HRESULT ModelName([out, retval] BSTR *pVal);
[propget, helpcontext(HlpCtxIUsb + 5), helpstring("Get 488.2 Compliance")]
HRESULT Is4882Compliant([out, retval] VARIANT_BOOL *pVal);
[propget, helpcontext(HlpCtxIUsb + 6), helpstring("Get the USB Serial
Number")]
HRESULT UsbSerialNumber([out, retval] BSTR *pVal);
[propget, helpcontext(HlpCtxIUsb + 7), helpstring("Get the USB Interface
Number")]
HRESULT UsbInterfaceNumber([out, retval] short *pVal);
[propget, helpcontext(HlpCtxIUsb + 8), helpstring("Get the USB Protocol")]
HRESULT UsbProtocol([out, retval] short *pVal);
[propget, helpcontext(HlpCtxIUsb + 9), helpstring("Get/Set the Maximum
Interrupt Size")]
HRESULT MaximumInterruptSize([out, retval] short *pVal);
[propget, helpcontext(HlpCtxIUsb + 9), helpstring("Get/Set the Maximum
Interrupt Size")]
HRESULT MaximumInterruptSize([in] short size);
[helpcontext(HlpCtxIUsb + 10), helpstring("Control the REN line
(remote/local) state")]
HRESULT ControlREN(
[in] RENControlConst mode);
[helpcontext(HlpCtxIUsb + 11), helpstring("Send Data to the USB Control
VXIplug&play Systems Alliance
VPP-4.3.4: VISA Implementation Specification for COM