/** * Copyright - See the COPYRIGHT that is included with this distribution. * pvxs is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. */ /** * Serves a single integer PV which increments at a pre-defined rate. */ #include #include #include #include #include #include #include #include #include using namespace pvxs; int main(int argc, char* argv[]) { double delay = 1.0; if(argc<=1) { std::cerr<<"Usage: "< [rateHz]\n"; return 1; } if(argc>=3) { double rate = 0.0; if(epicsParseDouble(argv[2], &rate, nullptr) || rate<=0.0) { std::cerr<<"Rate must be a positive number, not "<