The 5401 doesn't support markers. This feature is supported by the newer boards like the 5411, 5421, 5431 and 5441. Maybe you could use the SYNC output but it only generates a meaningful signal if you generate a sine signal (please refer to the NI Signal Generators Help).
Best regards,
Jochen Klier
National Instruments Germany