Skip to content
Snippets Groups Projects
Commit 93b3c37b authored by Elisabetta Pianori's avatar Elisabetta Pianori
Browse files

fix agilent

parent d5d08884
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,10 @@ void AgilentPs::connect_usb(std::string dev, unsigned addr) {
m_com = new SerialCom(dev, B115200);
m_addr = addr;
m_com->write("++auto 0\n\r");
}
void AgilentPs::initialize(){
// Check if the PS is connected
std::string idn=this->receive("*idn?");
......
......@@ -35,6 +35,8 @@ class AgilentPs {
void turnOn();
void turnOff();
void beepOff();
void initialize();
protected:
void connect_usb(std::string dev, unsigned addr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment