20 #define PT2026_CPP_DRIVER_BCD_VERSION 0x0104
25 namespace Instrument {
35 ViUInt32 m_Timeout_ms;
36 std::queue<sError> m_ErrorList;
42 bool l_GetErrorList(
const std::string & rContext);
43 bool l_WriteAndRead(
const std::string & rWriteStr,
CVISABuffer & rReadBuffer,
bool WaitForMAV =
false);
66 const std::vector<sError> ErrorList();
78 bool Connect(U32 InitialTimeout_ms);
95 bool UnlockInterface();
110 bool ChannelsSetLimitedListState(
bool State);
111 bool ChannelsGetLimitedListState(
bool & rState);
114 bool ChannelsGetLimits(
const MTL::SCPI::tChannelList & rChanList, std::vector<F64> & rLowLimit_UNITS, std::vector<F64> & rHighLimit_UNITS);
145 bool ParmSearchSetManualValue(F64 ManualValue_UNITS);
146 bool ParmSearchSetLimits(F64 LowLimit_UNITS, F64 HighLimit_UNITS);
147 bool ParmSearchSetHallEnable(
bool Enabled);
148 bool ParmSearchGetHallEnable(
bool & rEnabled);
262 bool ParmUnitsSet(
eUnits Units);
286 bool ParmComUsbSet(
bool Enabled);
287 bool ParmComUsbGet(
bool & rEnabled);
297 bool ParmComEthernetSet(
const sEthernet & rSettings);
298 bool ParmComEthernetGet(
sEthernet & rSettings);
308 bool ParmComVXI11Set(
bool Enabled);
309 bool ParmComVXI11Get(
bool & rEnabled);
321 bool ReadFileDirectory(U32 & rUsedBytes, U32 & rAvailableBytes,
tFileList & rFileList);
322 bool ReadFile(std::string Path, std::string & rContent);
323 bool WriteFile(std::string Path,
const std::string & rContent);
324 bool DeleteFile(std::string Path);
325 bool GetSettingFileList(std::vector<std::string> & rSettingFileList);
327 bool RecallSettings(std::string Name);
338 bool Initiate(
bool Continuous =
false);
339 bool Abort(
bool CancelContinuous =
true);
340 bool SendBusTrigger();
341 bool ForceOutputTrigger();
351 bool MeasurementsGet(U32 NoMeasurements, std::vector<tFlux> & rFlux,
eUnits & rUnits);
353 bool GetSearchProgress(U8 & rSPR, F64 & rHallMeasurement_UNITS);
372 bool StatusGet(std::vector<sStatusRegister> Regs, std::vector<U16> & rStatus);
373 bool StatusSetEnableRegister(
eStatusRegisterSet Set, U16 DisableMask, U16 EnableMask);
384 bool GetIdentification(std::string & rIdentification);
385 bool PowerOff(
bool Reboot =
false);
387 bool ReadCaseTemperature(F32 & rTemperatureDegC);
388 bool SwitchToDFUMode();
389 bool ReadDebugLog(std::string & rDebugLog);
390 bool ReadInformationDates(std::string & rSManufacturingDate, std::time_t & rManufacturingDate, std::string & rSCalibrationDate, std::time_t & rCalibrationDate);
401 bool DeviceROMWrite(
const MTL::SCPI::tChannel & rChannel,
const std::vector<U8> & rROMContent);
404 bool LowLevelTransfer(
const std::vector<U8> & rDataToSend, std::vector<U8> & rRcvdData, U8 & rReturnedStatus);
405 bool WriteCustomCommand(
const std::string & rWriteStr);