Elena;
The counter of the 6024E, as well as the counters of all NI DAQ devices count the active edges that come to its source input. That is looking like a noise case to me.
Make sure the encoder is giving only one active edge per period.
Hope this helps.
Filipe A.
Applications Engineer
National Instruments