Simulation and genetic optimization of control systems by LabVIEW programming