![]() |
THM1176InstrumentDriver 1.2
C++ API for Metrolab THM1176
|
Namespaces | |
| namespace | THM1176Types |
Classes | |
| class | CTHM1176Instrument |
| THM1176 instrument class. More... | |
| class | CSCPIBuffer |
| Instrument Buffer. More... | |
| class | CSCPIBufferParser |
| SCPI buffer parser. More... | |
| class | CVISAResourceManager |
| VISA Resource Manager class. More... | |
| class | CVISAInstrument |
| VISA instrument class. More... | |
| struct | sSerialPortSettings |
| Serial port settings. More... | |
| class | VISAResourceInfo |
| Information about a VISA resource. More... | |
| struct | sParsedResource |
| Parsed information about a VISA resource. More... | |
| class | CParsedResourceList |
| Parsed resource information for a list of instruments. More... | |
| class | CUSBTMCResourceManager |
| USBTMC Resource Manager class. More... | |
| class | CUSBTMCInstrument |
| USBTMC instrument class. More... | |
| class | CIEEE488ResourceManager |
| IEEE488 Instrument Resource Manager class. More... | |
| class | CIEEE488Instrument |
| IEEE488 instrument class. More... | |
| class | CResourceList |
| List of VISA resource names. More... | |
Typedefs | |
| typedef ViUInt16 | tInterfaceNumber |
| Interface number. | |
| typedef std::string | tResourceName |
| IEEE488 resource name. | |
Enumerations | |
| enum class | eInterfaceType { GPIB = VI_INTF_GPIB , VXI = VI_INTF_VXI , GPIB_VXI = VI_INTF_GPIB_VXI , ASRL = VI_INTF_ASRL , PXI = VI_INTF_PXI , TCPIP = VI_INTF_TCPIP , USB = VI_INTF_USB } |
| VISA interface types. More... | |
| enum class | eResourceClass { INSTR = 0 , MEMACC , INTFC , BACKPLANE , SERVANT , SOCKET , RAW } |
| Classes of VISA resource. More... | |
| enum class | eOpenAccessMode { NoLock = VI_NO_LOCK , ExclusiveLock = VI_EXCLUSIVE_LOCK , LoadConfig = VI_LOAD_CONFIG } |
| Access modes for VISA resources. More... | |
| enum class | eEventMechanism { Queue = VI_QUEUE , Handle = VI_HNDLR , Suspendedhandler = VI_SUSPEND_HNDLR , All = VI_ALL_MECH } |
| Event mechanisms. More... | |
| enum class | eEventType : unsigned long { ServiceRequest = VI_EVENT_SERVICE_REQ , Trig = VI_EVENT_TRIG , Clear = VI_EVENT_CLEAR , IOCompletion = VI_EVENT_IO_COMPLETION , Exception = VI_EVENT_EXCEPTION , GPIB_CIC = VI_EVENT_GPIB_CIC , GPIB_TALK = VI_EVENT_GPIB_TALK , GPIB_LISTEN = VI_EVENT_GPIB_LISTEN , VXI_VME_SYSFAIL = VI_EVENT_VXI_VME_SYSFAIL , VXI_VME_SYSRESET = VI_EVENT_VXI_VME_SYSRESET , VXI_SIGP = VI_EVENT_VXI_SIGP , VXI_VME_INTR = VI_EVENT_VXI_VME_INTR , PXI_INTR = VI_EVENT_PXI_INTR , TCPIP_CONNECT = VI_EVENT_TCPIP_CONNECT , USB_INTR = VI_EVENT_USB_INTR , ALL = VI_ALL_ENABLED_EVENTS } |
| Event types. More... | |
| enum class | eTriggerProtocol { Default = VI_TRIG_PROT_DEFAULT , VXI_Default = VI_TRIG_PROT_DEFAULT , VXI_On = VI_TRIG_PROT_ON , VXI_Off = VI_TRIG_PROT_OFF , VXI_Sync = VI_TRIG_PROT_SYNC , PXI_Reserve = VI_TRIG_PROT_RESERVE , PXI_Unreserve = VI_TRIG_PROT_UNRESERVE } |
| Trigger protocols. More... | |
| enum class | eSerialBaudrate { k110 = 110 , k300 = 300 , k600 = 600 , k1200 = 1200 , k2400 = 2400 , k4800 = 4800 , k9600 = 9600 , k14400 = 14400 , k19200 = 19200 , k28800 = 28800 , k38400 = 38400 , k57600 = 57600 , k115200 = 115200 , k230400 = 230400 , k460800 = 460800 , k921600 = 921600 } |
| Serial baudrate. More... | |
| enum class | eSerialDataBits { k7 = 7 , k8 = 8 } |
| Number of data bits for the serial communication. More... | |
| enum class | eSerialParity { kNone = VI_ASRL_PAR_NONE , kOdd = VI_ASRL_PAR_ODD , kEven = VI_ASRL_PAR_EVEN , kMark = VI_ASRL_PAR_MARK , kSpace = VI_ASRL_PAR_SPACE } |
| Parity configuration for the serial communication. More... | |
| enum class | eSerialStopBits { k1 = VI_ASRL_STOP_ONE , k1_5 = VI_ASRL_STOP_ONE5 , k2 = VI_ASRL_STOP_TWO } |
| Stop bit configuration for the serial communication. More... | |
| enum class | eSerialHandshake { kNone = VI_ASRL_FLOW_NONE , kXonXoff = VI_ASRL_FLOW_XON_XOFF , kHardware = VI_ASRL_FLOW_RTS_CTS , kHardAndSoft = (VI_ASRL_FLOW_XON_XOFF | VI_ASRL_FLOW_RTS_CTS) } |
| Handshake configuration for the serial communication. More... | |
| enum class | eSerialTermMode { kEndNone = VI_ASRL_END_NONE , kEndLast = VI_ASRL_END_LAST_BIT , kEndTermChar = VI_ASRL_END_TERMCHAR , kEndBreak = VI_ASRL_END_BREAK } |
| Serial termination mode. More... | |
Functions | |
| std::string | StatusDescription (ViSession Session, ViStatus Status) |
| Return user-readable description of the given status code. | |
Variables | |
| static const I32 | THM1176_NO_ANGLE_CORRECTION_CODE = 208 |
| Warning that angle correction was not applied. | |
| typedef ViUInt16 MTL::Instrument::tInterfaceNumber |
Interface number.
Definition at line 35 of file VISAInstrumentTypes.h.
| typedef std::string MTL::Instrument::tResourceName |
IEEE488 resource name.
Definition at line 22 of file IEEE488InstrumentTypes.h.
|
strong |
Event mechanisms.
Definition at line 56 of file VISAInstrumentTypes.h.
|
strong |
Event types.
Definition at line 64 of file VISAInstrumentTypes.h.
|
strong |
VISA interface types.
Definition at line 25 of file VISAInstrumentTypes.h.
|
strong |
Access modes for VISA resources.
Definition at line 49 of file VISAInstrumentTypes.h.
|
strong |
Classes of VISA resource.
| Enumerator | |
|---|---|
| INSTR | |
| MEMACC | Memory access. |
| INTFC | GPIB Bus Interface. |
| BACKPLANE | VXIbus Mainframe Backplane. |
| SERVANT | Device-side functionality. |
| SOCKET | Ethernet Socket. |
| RAW | USB Raw. |
Definition at line 38 of file VISAInstrumentTypes.h.
|
strong |
Serial baudrate.
Definition at line 114 of file VISAInstrumentTypes.h.
|
strong |
Number of data bits for the serial communication.
| Enumerator | |
|---|---|
| k7 | 7 data bits |
| k8 | 8 data bits |
Definition at line 133 of file VISAInstrumentTypes.h.
|
strong |
Handshake configuration for the serial communication.
| Enumerator | |
|---|---|
| kNone | Set None. |
| kXonXoff | Set Software Handshake Xon/Xoff. |
| kHardware | Set Hardware Handshake RTS/CTS. |
| kHardAndSoft | Set Hardware & Software Handshake (Xon/Xoff & RTS/CTS). |
Definition at line 153 of file VISAInstrumentTypes.h.
|
strong |
Parity configuration for the serial communication.
| Enumerator | |
|---|---|
| kNone | Set Parity to None. |
| kOdd | Set Parity to Odd. |
| kEven | Set Parity to Even. |
| kMark | Set Parity to Mark. |
| kSpace | Set Parity to Space. |
Definition at line 138 of file VISAInstrumentTypes.h.
|
strong |
Stop bit configuration for the serial communication.
| Enumerator | |
|---|---|
| k1 | Set Stop bit to 1. |
| k1_5 | Set Stop bit to 1.5. |
| k2 | Set Stop bit to 2. |
Definition at line 147 of file VISAInstrumentTypes.h.
|
strong |
Serial termination mode.
Definition at line 160 of file VISAInstrumentTypes.h.
|
strong |
Trigger protocols.
Reference: online documentation of viAssertTrigger (http://zone.ni.com/reference/en-XX/help/370131S-01/ni-visa/viasserttrigger/)
Definition at line 103 of file VISAInstrumentTypes.h.
| std::string MTL::Instrument::StatusDescription | ( | ViSession | Session, |
| ViStatus | Status ) |
Return user-readable description of the given status code.
| [in] | Session | VISA session. |
| [in] | Status | Status code to be described. |
Definition at line 42 of file VISAInstrument.cpp.