A system and method for encoding and decoding data. A printhead module is positioned in the casing. The method further includes providing information regarding reference signal locations to the decoder. Spatially coded second magnetic resonance signals from the second gradient-balanced SSFP sequence during the transient portion of the second gradient-balanced SSFP sequence. The private user data is extracted from the data sequence according to the pre-defined data structure corresponding to the recognized UDI. Having the rising edge of the reset signal rise before the falling edge of the set signal can allow a zero percent duty cycle without the need for a ramp offset voltage.