myWRIO
C++ framework for NationalInstruments myRIO
example_pwm.cpp
#include "MyRIO.h"
using namespace myRIO;
using namespace std;
int main() {
if(!myRIO_init()) {cout << "Error initializing myRIO"; return -1;}
// Output a 10kHz, 3.3V PWM signal with a duty cycle of 25% for 10 seconds
PWM channelC0(PWMC0, 10e3, 25);
}