add pty-gpib-emulator from github

This commit is contained in:
2020-09-09 05:17:31 +00:00
parent 63554da593
commit 3fe71a6f3b
22 changed files with 997 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#include "PTY_Interface.h"
#include "Prologix.h"
#include <iostream>
#define TEST(A) std::cout << A << ": " << inter.handleInput(A).at(0) << std::endl;
int main() {
Prologix_GPIB_USB *plg = new Prologix_GPIB_USB();
Interface inter(plg);
vector<string> v;
inter.printFilename();
inter.addDevice(plg, 0);
TEST("++ver");
TEST("++addr");
TEST("++addr 2");
TEST("++addr");
TEST("++ver");
inter.printFilename();
inter.run();
delete plg;
return 0;
}