A lithographic apparatus has a position measuring apparatus configured to measure a position of a substrate support or a patterning support in a medium. The sensor assembly further comprises circuitry for writing data to the data storage disk and circuitry for reading data from the data storage disk. The user also graphically selects the signal trigger condition.