I took a look at the example you attached and it looks fine. Here are a few things to try out BEFORE running the example from MAX:
1) Remove any SCXI, SCC, and accessories from the configuration in MAX so that no DIO lines are reserved for communication.
2) Reset the driver to work in DAQmx mode for your board. To do this, first right-click the "Traditional DAQ Devices" and say "Reset Driver" and then right-click your 6025E under DAQmx Devices and say "Reset Driver" again. This should enable the driver for DAQmx.
3) In MAX, under DAQmx Devices, run the test panel and make sure you can read/write all the DIO lines there first. If that works fine you should be able to run the example.
Remember that the port names for the 6025E are Port 0, Port 2, Port
3, and Port 4 (no Port 1).
Good Luck!!!
Sincerely,
Brooks Bailey
Application Engineering
National Instruments