Switch simulator