11#include "../resources/visa.h"
80 ALL = VI_ALL_ENABLED_EVENTS
148 k1 = VI_ASRL_STOP_ONE,
150 k2 = VI_ASRL_STOP_TWO
246 return !(*
this == other);
256 if (other.size() != size())
258 for (CParsedResourceList::const_iterator thisit = begin(), otherit = other.begin(); thisit != end(); thisit++, otherit++)
260 if (*thisit != *otherit)
267 if (other.size() != size())
269 for (CParsedResourceList::const_iterator thisit = begin(), otherit = other.begin(); thisit != end(); thisit++, otherit++)
271 if (*thisit != *otherit)
Parsed resource information for a list of instruments.
bool operator==(CParsedResourceList const &other)
Equality operator.
bool operator!=(CParsedResourceList const &other)
Inequality operator.
Information about a VISA resource.
const tAlias & Alias() const
Return alias.
std::string tClass
Class: INSTR / RAW / ...
const tClass & Class() const
Return interface class.
VISAResourceInfo(eInterfaceType Type=eInterfaceType::GPIB, tInterfaceNumber Number=0, tClass Class="", tExpandedName Expname="", tAlias Alias="")
Constructor.
std::string tAlias
Alias, if any.
const tInterfaceNumber & Number() const
Return interface number.
std::string tExpandedName
Full resource name.
const eInterfaceType & Type() const
Return interface type.
const tExpandedName & ExpName() const
Return full resource name.
eSerialParity
Parity configuration for the serial communication.
@ kNone
Set Parity to None.
@ kMark
Set Parity to Mark.
@ kSpace
Set Parity to Space.
@ kEven
Set Parity to Even.
eSerialDataBits
Number of data bits for the serial communication.
eSerialStopBits
Stop bit configuration for the serial communication.
@ k1_5
Set Stop bit to 1.5.
std::string tResourceName
IEEE488 resource name.
eEventMechanism
Event mechanisms.
@ Queue
Enable the session to queue events.
@ All
Enable the session to all events.
@ Suspendedhandler
Enable the session to execute the handler.
@ Handle
Enable the session to invoke a callback function.
eSerialHandshake
Handshake configuration for the serial communication.
@ kHardAndSoft
Set Hardware & Software Handshake (Xon/Xoff & RTS/CTS)
@ kXonXoff
Set Software Handshake Xon/Xoff.
@ kHardware
Set Hardware Handshake RTS/CTS.
ViUInt16 tInterfaceNumber
Interface number.
eOpenAccessMode
Access modes for VISA resources.
@ LoadConfig
Configure attributes to values specified by an external configuration utility.
@ ExclusiveLock
Acquire an exclusive lock immediately upon opening a session. If a lock cannot be acquired,...
@ NoLock
Open session without using an exclusive lock or loading configuration information.
eInterfaceType
VISA interface types.
@ VXI
VXI (IEEE 488.2 over Ethernet).
@ GPIB_VXI
Ethernet GPIB adapter. (?)
@ GPIB
GPIB (a.k.a. HPIB or IEEE 488.1).
@ PXI
PXI (PCI eXtensions for Instrumentation).
eTriggerProtocol
Trigger protocols.
@ VXI_On
Asserts the trigger.
@ Default
Default protocol.
@ PXI_Unreserve
Release a trigger line.
@ VXI_Off
Deasserts the trigger.
@ PXI_Reserve
Reserve a trigger line.
@ VXI_Default
Default protocol for VXI.
@ VXI_Sync
Pulses the trigger (assert followed by deassert).
eSerialTermMode
Serial termination mode.
@ kEndTermChar
Set termination character to the one specified by VI_ATTR_TERMCHAR()
@ kEndNone
Set termination character to None.
@ kEndLast
Set termination character to Last bit.
@ kEndBreak
Set termination character to Break (Only available in Write termination)
@ ServiceRequest
Service request was received from device or interface.
@ VXI_VME_SYSFAIL
VXI/VME SYSFAIL* line was asserted.
@ VXI_VME_INTR
VXIbus interrupt was received from the device.
@ GPIB_CIC
GPIB controller has gained or lost CIC (controller-in-charge) status.
@ GPIB_LISTEN
GPIB controller has been addressed to listen.
@ VXI_SIGP
VXIbus signal or VXIbus interrupt was received from the device.
@ Trig
Trigger interrupt was received from the device.
@ Exception
Error condition has occured during an operation.
@ VXI_VME_SYSRESET
VXI/VME SYSRESET* line was asserted.
@ TCPIP_CONNECT
TCP/IP connection has been made.
@ GPIB_TALK
GPIB controller was addressed to talk.
@ IOCompletion
Asynchronous operation has completed.
@ Clear
Device clear message was sent to the local controller.
@ PXI_INTR
PXI interrupt occurred.
@ USB_INTR
USB interrupt has occurred.
eSerialBaudrate
Serial baudrate.
eResourceClass
Classes of VISA resource.
@ BACKPLANE
VXIbus Mainframe Backplane.
@ INTFC
GPIB Bus Interface.
@ SERVANT
Device-side functionality.
VISAResourceInfo Info
Parsed VISA resource information.
bool operator==(sParsedResource const &other) const
Equality operator.
tResourceName Name
VISA resource name.
sParsedResource(tResourceName &rName, VISAResourceInfo &rInfo)
Constructor.
bool operator!=(sParsedResource const &other) const
Inequality operator.
sSerialPortSettings()
Constructor.
std::string COMPort
[-] String identifying the serial port to connect to
eSerialDataBits DataBits
[-] Number of transmitted bits per packet
eSerialHandshake Handshake
[-] Handshake configuration of the serial communication
eSerialBaudrate Baudrate
[bd] Speed of the serial communication
eSerialStopBits StopBits
[-] Stop bit configuration of the serial communication
eSerialParity Parity
[-] Parity configuration of the serial communication
eSerialTermMode ReadTermMode
[-] Termination Read mode of the serial communication
char ReadTermChar
[-] Specific termination character when readTermMode = kEndTermChar