X-ray tube control software for xrf