Newer
Older
AutomaticVerification / softwareDirectory / AutoVerScheme / visacommonengine.h
陈实 on 22 Mar 2024 650 bytes 自动检定修改
#ifndef VISACOMMONENGINE_H
#define VISACOMMONENGINE_H
#include "visa.h"
#include <QString>

class VisaCommonEngine
{
public:
    VisaCommonEngine();
    //~VisaCommonEngine();
    QString queryData(QString sCmd);
    bool sendData(QString sCmd);
public:
    bool openDevice(QString sAddr,QString sType);
    void closeDevice();
    bool getState();
private:
    ViSession defaultRM;
    ViSession instr;
    ViUInt32 retCount;
    ViUInt32 writeCount;
    ViStatus status;
    unsigned char buffer[100];
    char stringinput[512];
    ViConstRsrc remoteAddr="";
    QString commType="Visa";
    bool commState=false;
};

#endif // VISACOMMONENGINE_H