Synthesis semizwitterionic viologens for the crystal engineering of functional materials. Application of the control positions of molecules in crystals using hydrogen bonds. The triple helices had obtained by tunig the spacer between donor and acceptor.