Difference between revisions of "HOWTO Read the laser in real time"

From GlueXWiki
Jump to: navigation, search
m (Troubleshooting)
Line 15: Line 15:
 
* If ''minicom'' refuses to make a connection, it is likely because another program has control of the serial port. Try killing the other process with the following:
 
* If ''minicom'' refuses to make a connection, it is likely because another program has control of the serial port. Try killing the other process with the following:
 
*:
 
*:
*:  ''kill -9 `cat /var/lock/LCK..TTYS0`''
+
*:  ''kill -9 `cat /var/lock/LCK..ttyS0`''
 
*:
 
*:
 
* If you still can't get access to the serial port, reboot the Linux Desktop. On rare occasions, the serial device on the computer side gets confused to the point that only a reboot will clear it to the point that communications can be established.
 
* If you still can't get access to the serial port, reboot the Linux Desktop. On rare occasions, the serial device on the computer side gets confused to the point that only a reboot will clear it to the point that communications can be established.

Revision as of 17:04, 5 May 2009

The laser measurement device, part of the FDC laser scanner system, is read via RS232 serial communication through the serial port on the Desktop computer located on the ground. The laser's default mode when powered on is to continuously read out depth measurements to this computer. Note that only one program can read from the serial port at a time so these instructions should only be followed if a full snake scan is not currently in progress.

To read the values reported by the laser device, perform the following:

  1. Make sure the laser is plugged in and is on. The plug is labeled and plugs into a power strip that sits on top of the granite rock, towards the right. If you do not see the laser reflecting off of whatever is directly in front of it, then unplug the laser and plug it back in to reset it.
  2. Open up an window on the Linux Desktop computer and type:
    minicom -o
    This should immediately start reading the laser with numbers scrolling up the screen. The values are in mm.

Troubleshooting

  • If minicom refuses to make a connection, it is likely because another program has control of the serial port. Try killing the other process with the following:
    kill -9 `cat /var/lock/LCK..ttyS0`
  • If you still can't get access to the serial port, reboot the Linux Desktop. On rare occasions, the serial device on the computer side gets confused to the point that only a reboot will clear it to the point that communications can be established.
  • If minicom does not display any readings, check that the serial cable is plugged in tightly (both to the back of the computer, and on top of the granite rock where the extension cord meets the laser's cable).
  • If the laser is not reading properly (too fast or too slow) try unplugging and plugging it back it.
  • If the laser reads only zeros, it probably means the distance between the read head and the surface being measured is out of range. The device has a very limited range of only 6.35mm centered around 21mm. Try slipping in a piece of paper to see if you can get non-zero numbers to come up. If so, then the surface is too far away. If not, then try moving the laser further from the surface.

Contact

David Lawrence davidl@jlab.org x5567