TAS and TOF neutron scattering spectrometers connected with a Lego NXT MindStorms model
This is a set of McStas components and instruments to model a Triple-Axis and a Time-Of-Flight neutron scattering instruments, connected with a Lego MindStorms real-world model.
This is a robotic model (it moves) to be used for teaching/training and in exhibitions. When a McStas simulation is launched on the PC, the model positions itself with the corresponding geometry.
Table of contents:
- Install t2n. On Debian-class systems (Ubuntu, Mint...) just use
sudo apt install t2n. - Install NBC with
cd nbc-1.23.r3.src; sudo make install. - Compile the TAS and TOF nxc code:
nbc -EF nxTAS.nxc -O=nxTAS.rxe. - Connect the Lego MindStorms controller NXT via USB and initiate communication with
t2n -i. - Send the program to the NXT with
t2n -put nxTAS.rxeornbc -EF -d nxTAS.nxc. - Start the program on the NXT in My Files>Software Files.
- Build the Lego model.
- Compile the McStas
.instr, and use it.
This is (c) E. Farhi and Jean-Philippe Panaget, 2011.
