25 namespace Instrument {
39 ViSession m_DefaultRM;
49 const ViSession & Session();
52 bool FindResources(
CResourceList & rList, std::string Filter =
"?*");
75 bool Open(
eOpenAccessMode AccessMode = eOpenAccessMode::NoLock, ViUInt32 Timeout_ms = 0);
80 const ViStatus & Status();
81 const ViSession & Session();
84 bool Write(
const char * Str);
85 bool Write(
const std::string & rStr);
87 bool Write(
const ViBuf WriteBuf, ViUInt32 BuffLen);
89 bool Read(ViPBuf ReadBuf, ViUInt32 ReadLen, ViUInt32 & rRetLen);
92 bool SetTimeout(ViUInt32 Timeout);
94 bool ReadSTB(ViUInt16 & rSTB);
98 bool LockExclusive(ViUInt32 Timeout);
99 bool LockShared(ViUInt32 Timeout, ViKeyId RequestedKey, ViChar AccessKey[]);
105 bool WaitOnEvent(
eEventType Type, ViUInt32 Timeout);
106 bool WaitOnAllEvents(ViUInt32 Timeout);
110 bool GetAttribute(ViAttr Attribute,
void * Value);
113 bool UsbControlIn(ViInt16 bmRequestType, ViInt16 bRequest, ViUInt16 wValue, ViUInt16 wIndex, ViUInt16 wLength, ViPBuf buf, ViUInt16 & rretCnt);
114 bool UsbControlOut(ViInt16 bmRequestType, ViInt16 bRequest, ViUInt16 wValue, ViUInt16 wIndex, ViUInt16 wLength, ViBuf buf);