add pty-gpib-emulator from github
This commit is contained in:
28
pty-gpib-emulator/c++/test.cpp
Normal file
28
pty-gpib-emulator/c++/test.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user