Repetitive controllers have been shown to be effective for tracking periodic reference commands with known period. For a reference with fixed period, its implementation can be done with time fixed sampling where an integer number of samples in each period can be required. With variable periodic signal tracking with real-time realization, the number of samples per period may be a noninteger with a fixed sample rate. This paper presents an adaptive repetitive control scheme for reducing tracking errors due to variable periodic reference signals with two nonsynchronized sampling. Aside from time sampling, a position pulse signal generated by optical encoder is used to produce another fixed sampling. This technique can accommodate the variable periodic signal and variable samples per period for synchronization can be achieved by the position sampling. Experimental studies of a twin linear motor control system which comes up with variable periodic references are given. The experimental results illustrate the validity of the proposed implementation method in that adaptive repetitive control with two nonsynchronized sampling can effectively eliminate steady-state errors within a few cycles that are caused by variable periodic references.