Here's a slight modification to the vi you posted. The essential trick for getting +/- counts when using "Ticks" as units is to convert the u32 (unsigned integer) to an i32 (signed integer). When you decrement across 0, the actual count register stores the maximum unsigned 32-bit integer -- all bits set to 1. When this same bit pattern is converted to an i32, it is interpreted as -1. Further decrementing will continue -2, -3, -4...
Note: This approach would still produce a discontinuity, but it would happen as you crossed the 2**31 ticks position rather than the 0 position. Fortunately, with a linear encoder you're unlikely to ever get there...
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.