myWRIO
C++ framework for NationalInstruments myRIO
example_log.cpp
#include "
MyRIO.h
"
using namespace
myRIO
;
int
main
() {
if
(!
myRIO_init
()) {std::cout <<
"Error initializing myRIO"
;
return
-1;}
double
interestingValue = 0;
Time
timer =
Time::stopwatch
();
Log
log(
"logFile.txt"
);
while
(1) {
if
(++interestingValue==50)
interestingValue = 50;
log.
println
(timer.elasped_ns(), interestingValue);
Time::wait_ms
(10);
}
}
Generated by
1.8.15