Skip to main content
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

CHRNS: MACS DFM

The Double Focusing Monochromator- front view
MACS CHRNS

 

 

MACS Operations

 

The double focusing monochromator on MACS helps the instrument make the most of the PeeWee cold source by focusing the cold neutrons on the sample for increased flux or on the detectors for enhanced resolution.

The monochromator was built fifteen years ago and uses a collection of 32 motors to position HOPG crystals for energy focusing in the scattering plane and sagittal focusing out of that plane. When the system was originally built, each motor had an independent motor controller whose communications were bussed together using the RS485 electrical standard. That constellation of motors was managed by a large Labview application which calculated motor angles for the desired energy and focusing mode. As the motor controllers used in the apparatus are obsolete and the supervisory application has some demonstrable inefficiencies which compromise instrument performance, we elected to adapt its control electronics to use the NCNR facility standard VIPER motor control application.

Improvements

  • built adaptor boxes to route motor and feedback signals to the VME based indexers and associated stepper drivers
  • replaced the legacy Labview application with the standard NCNR motor control application
  • NCNR standard motor control application was also rewritten as a compiled application using the Qt cross platform development toolkit
    • the reengineered VIPER is more responsive and stable 
    • designed for easier deployment on modern variants of Linux
    • multithreaded implementation is intended to decrease overhead in motor positioning and event counting on traditional reactor-based spectrometers
    • supports both serial and Ethernet remote interfaces
    • emits motor positions with absolute timestamps in the IEEE-1588 (Precision Time Protocol) format
    • can perform coordinated focusing motions 

 

NICE's Live Display of the MACS DFM
A portion of the MACS instrument cartoon showing the DFM.

The new NICE instrument control system manages focusing of the DFM along with all other motions on the instrument. It provides a live cartoon representation of the entire instrument which updates live as it moves. This features a detailed, accurate, representation of DFM showing every motor's position, providing limit and positional information on mouse-over and showing top-down, focused blade projections/shadows. 

 

 

 

 

 

 

 

 

 

 

 

Created January 18, 2022, Updated January 30, 2023