VISA instrument class.
More...
#include <VISAInstrument.h>
|
| CVISAInstrument (CVISAResourceManager &rRM, tResourceName Rsrc) |
|
virtual | ~CVISAInstrument () |
|
bool | Open (eOpenAccessMode AccessMode=eOpenAccessMode::NoLock, ViUInt32 Timeout_ms=0) |
|
void | Close () |
|
bool | IsOpen () |
|
const ViStatus & | Status () |
|
const ViSession & | Session () |
|
bool | Write (const char *Str) |
|
bool | Write (const std::string &rStr) |
|
bool | Write (const CVISABuffer &rBuf) |
|
bool | Write (const ViBuf WriteBuf, ViUInt32 BuffLen) |
|
bool | Read (CVISABuffer &rBuf, bool Append=false) |
|
bool | Read (ViPBuf ReadBuf, ViUInt32 ReadLen, ViUInt32 &rRetLen) |
|
bool | SetTimeout (ViUInt32 Timeout) |
|
bool | Clear () |
|
bool | ReadSTB (ViUInt16 &rSTB) |
|
bool | AssertTrigger (eTriggerProtocol Protocol) |
|
bool | LockExclusive (ViUInt32 Timeout) |
|
bool | LockShared (ViUInt32 Timeout, ViKeyId RequestedKey, ViChar AccessKey[]) |
|
bool | Unlock () |
|
bool | EnableEvent (eEventType Type, eEventMechanism Mechanism) |
|
bool | DisableEvent (eEventType Type, eEventMechanism Mechanism) |
|
bool | WaitOnEvent (eEventType Type, ViUInt32 Timeout) |
|
bool | WaitOnAllEvents (ViUInt32 Timeout) |
|
bool | DiscardEvents (eEventType Type, eEventMechanism Mechanism) |
|
bool | GetAttribute (ViAttr Attribute, void *Value) |
|
bool | UsbControlIn (ViInt16 bmRequestType, ViInt16 bRequest, ViUInt16 wValue, ViUInt16 wIndex, ViUInt16 wLength, ViPBuf buf, ViUInt16 &rretCnt) |
|
bool | UsbControlOut (ViInt16 bmRequestType, ViInt16 bRequest, ViUInt16 wValue, ViUInt16 wIndex, ViUInt16 wLength, ViBuf buf) |
|
bool | ConfigSerialPort (const sSerialPortSettings &rPortSettings) |
|
VISA instrument class.
Definition at line 60 of file VISAInstrument.h.
◆ CVISAInstrument()
◆ ~CVISAInstrument()
CVISAInstrument::~CVISAInstrument |
( |
| ) |
|
|
virtual |
◆ AssertTrigger()
◆ Clear()
bool CVISAInstrument::Clear |
( |
| ) |
|
◆ Close()
void CVISAInstrument::Close |
( |
| ) |
|
◆ ConfigSerialPort()
◆ DisableEvent()
◆ DiscardEvents()
◆ EnableEvent()
◆ GetAttribute()
bool CVISAInstrument::GetAttribute |
( |
ViAttr |
Attribute, |
|
|
void * |
Value |
|
) |
| |
◆ IsOpen()
bool CVISAInstrument::IsOpen |
( |
| ) |
|
◆ LockExclusive()
bool CVISAInstrument::LockExclusive |
( |
ViUInt32 |
Timeout | ) |
|
◆ LockShared()
bool CVISAInstrument::LockShared |
( |
ViUInt32 |
Timeout, |
|
|
ViKeyId |
RequestedKey, |
|
|
ViChar |
AccessKey[] |
|
) |
| |
◆ Open()
◆ Read() [1/2]
bool CVISAInstrument::Read |
( |
CVISABuffer & |
rBuf, |
|
|
bool |
Append = false |
|
) |
| |
◆ Read() [2/2]
bool CVISAInstrument::Read |
( |
ViPBuf |
ReadBuf, |
|
|
ViUInt32 |
ReadLen, |
|
|
ViUInt32 & |
rRetLen |
|
) |
| |
◆ ReadSTB()
bool CVISAInstrument::ReadSTB |
( |
ViUInt16 & |
rSTB | ) |
|
◆ Session()
const ViSession & CVISAInstrument::Session |
( |
| ) |
|
◆ SetTimeout()
bool CVISAInstrument::SetTimeout |
( |
ViUInt32 |
Timeout | ) |
|
◆ Status()
const ViStatus & CVISAInstrument::Status |
( |
| ) |
|
◆ Unlock()
bool CVISAInstrument::Unlock |
( |
| ) |
|
◆ UsbControlIn()
bool CVISAInstrument::UsbControlIn |
( |
ViInt16 |
bmRequestType, |
|
|
ViInt16 |
bRequest, |
|
|
ViUInt16 |
wValue, |
|
|
ViUInt16 |
wIndex, |
|
|
ViUInt16 |
wLength, |
|
|
ViPBuf |
buf, |
|
|
ViUInt16 & |
rretCnt |
|
) |
| |
◆ UsbControlOut()
bool CVISAInstrument::UsbControlOut |
( |
ViInt16 |
bmRequestType, |
|
|
ViInt16 |
bRequest, |
|
|
ViUInt16 |
wValue, |
|
|
ViUInt16 |
wIndex, |
|
|
ViUInt16 |
wLength, |
|
|
ViBuf |
buf |
|
) |
| |
◆ WaitOnAllEvents()
bool CVISAInstrument::WaitOnAllEvents |
( |
ViUInt32 |
Timeout | ) |
|
◆ WaitOnEvent()
bool CVISAInstrument::WaitOnEvent |
( |
eEventType |
Type, |
|
|
ViUInt32 |
Timeout |
|
) |
| |
◆ Write() [1/4]
bool CVISAInstrument::Write |
( |
const char * |
Str | ) |
|
◆ Write() [2/4]
bool CVISAInstrument::Write |
( |
const CVISABuffer & |
rBuf | ) |
|
◆ Write() [3/4]
bool CVISAInstrument::Write |
( |
const std::string & |
rStr | ) |
|
◆ Write() [4/4]
bool CVISAInstrument::Write |
( |
const ViBuf |
WriteBuf, |
|
|
ViUInt32 |
BuffLen |
|
) |
| |
◆ m_InstrSession
ViSession MTL::Instrument::CVISAInstrument::m_InstrSession |
|
protected |
◆ m_Lock
◆ m_rRrsrcMan
◆ m_Rsrc
◆ m_Status
ViStatus MTL::Instrument::CVISAInstrument::m_Status |
|
protected |
The documentation for this class was generated from the following files:
- D:/Perforce/Simon_DESKTOP-ST2_C++InstrumentCatalogDistribution_20_10_08_3862/Libraries/VISAInstrument/include/VISAInstrument.h
- D:/Perforce/Simon_DESKTOP-ST2_C++InstrumentCatalogDistribution_20_10_08_3862/Libraries/VISAInstrument/src/VISAInstrument.cpp