Work method of Hardware class writes to control values to file