I have been working on the X series DDK digital output example dioex1.cpp. It seems working but not exactly what I expected. I have set it up for digital output and sent out the value on specific bit (pin) in dioex1.cpp and I did see the pin turned ON. However, it didn't hold ON all the time instead of toggling the bit On/Off all the time.
The expected behavior of the example is that it resets the dio subsystem, briefly outputs the expected state, and then resets the dio subsystem back to the default state as the application exits. If you want the outputs to remain set after running the example, you can set the tristateOnExit to kFalse instead of kTrue. However, when the example is run again, it will briefly reset the dio subsystem before outputting the next state that you want.
I would recommend creating a loop in the example so that it doesn't exit until it receives input to exit (and resetting the dio subsystem of the board). This would make the output stay on the port as long as you need it there.