/* * currentmeter.cpp * * Created on: 04.02.2009 * Author: Thomas Janson * Email : janson@physi.uni-heidelberg.de * */ #include #include #include #include #include #include #include #include "scsn_class.h" using namespace std; int main(int argc, char** argv) { scsn_bus scsn; pci_psi acex_scsn; // open the PSI device acex_scsn.open_scsn(0); // init the SCSN interface with the PSI device scsn.init(&acex_scsn); // samples 10 times U1,U2,U3,U4,I1,I2,I3,I4 // prints the values out to stdout scsn.ROBCurrentmeter(10); // close the PSI device acex_scsn.close_psi(); return 0; }