Re: Digital I/O Dilemma
Be sure to start the encoder or it won't count. I spent an hour remembering this last night. . .
Encoder1->Start();
I test them by getting the value and printing to the console.
signed mouseXPosition = Encoder1->Get();
printf("MouseX %d\r\n", mouseXPosition);
You can view the console output by right right clicking on the connection to the cRIO and selecting Target Tools / Target Console. This will display all printed data until a reboot.
|