The PT Filterwheel Controller controls the shutter, filter wheel and flat field lamp. It runs on a ZWorld JackRabbit BL1810 single board computer, and the code is written in Dynamic C.
| Basic Commands | |
| rebootAck | Acknowledge controller reboot. Until this command is sent, all other commands are rejected (following a reboot). This is a no-op once reboot has been acknowledged. |
| reset | Resets the controller to a known state, including closing the shutter (aborting a timed exposure, if any), moving the filter wheel to the next known position if the position is unknown (i.e. if there is was an error last time the filter wheel was moved), and turning off the flat field lamp. |
| Shutter Commands | |
| startExposure timeTenthSec | Starts an exposure, where exposuretime is in integer tenth seconds. The allowed range is [1, 20,000]. Prohibited while the shutter is open, the filter wheel is moving or the filter wheel position is unknown. As a deprecated feature, if you omit timeTenthSec then the default exposure time is used (see setExposureTime). |
| remainingTime | Returns the remaining exposure time for the current exposure in integer tenth seconds. Returns 0 if no exposure. Returns -1 if the shutter is open for an untimed exposure. |
| closeShutter | Closes the shutter, aborting a timed exposure, if any. Returns the exposure time (in tenths of a second) if a timed exposure was occurring. Returns 0 if the shutter was already closed. Returns -1 if an untimed exposure was in progress. |
| interruptExposure | Identical to closeShutter. |
| openShutter | Kills the current timed exposure, if any, then opens the shutter for an untimed exposure. |
| queryShutter | Returns the state of the shutter: "open" or "closed". |
| The following shutter commands are deprecated: | |
| setExposureTime timeTenthSec | Sets the default exposure time in integer tenth seconds. Returns the actual time that has been set. The use of default exposure time is deprecated. |
| getExposureTime | Returns the default exposure time in integer tenth seconds. The use of default exposure time is deprecated. |
| Filter Wheel Commands | |
| setFilter desPos | Moves the filter wheel to the desired position 1-6. Returns the same information as getFilter. Prohibited during a timed exposure. Note: most of the motion happens in the background. However, if the current position is unknown (i.e. if the last move failed) then the filter wheel is first moved to the next known position in the foreground (which can take several seconds) before the command returns. |
| getFilter | Returns currPos desPos status:
|
| Miscellaneous Commands | |
| setFFLamp desState | Controls the flat field lamp; desState is one of on or off. Returns the state. Prohibited during a timed exposure. |
| getFFLamp | Returns the state of the flat field lamp; one of on or off. |
| getDigIO | Returns the value of digital I/O and other boolean info in hex with a leading 0x; for example: 0x13e. The bits are as follows (where 0 is the low order bit):
|
On 2003-03-28 the PT filterwheel controller underwent a major overhaul. The changes are as follows:
Overall Changes:
Changed Commands:
New Commands:
Deleted Commands: