optical encoder feedback windriver

I’m just wondering how do I recieve data back from the optical encoder using windriver? Do I see it threw the console? or debug window? This is my code:

INT32 encoderValue = myEncoder.get();
cout << encoderValue;

You should see it either one. Make sure you have myEncoder.Start(); as well

I added that but I still get nothing.