Main Page | Data Structures | File List | Data Fields | Globals

main.c File Reference

filter wheel agent main program and I/O event handler. More...

#include "isisclient.h"
#include "client.h"
#include <readline/readline.h>
#include <readline/history.h>

Functions

int main (int argc, char *argv[])
void HandleInt (int signalValue)
 Service Ctrl+C Interrupts (SIGINT signals).

void abortall (void)
 Abort all pending moves.


Variables

isisclient_t client
 ISISclient runtime config table for this app.

si_mechanism_t fw
 Filter wheel mechanism table.

si_drivepars_t fwpar
 Filter wheel drive parameter table.

int beamoff = 0
int loadoff = 0


Detailed Description

filter wheel agent main program and I/O event handler.


Function Documentation

int main int  argc,
char *  argv[]
 

void HandleInt int  signalValue  ) 
 

Service Ctrl+C Interrupts (SIGINT signals).

SIGINT signal trap for trapping Ctrl+C interrupts. Calls abortall() to immediately abort all moves in progress.

See also:
abortall()

void abortall void   ) 
 

Abort all pending moves.

Uses the low-level SCLAbort() function to send the motion abort (SK = Stop/Kill) command to all microstep drives. Sending SK to an idle microstep drive has no consequences, so this shotgun approach is the simplest and safest.

Invoked by the Ctrl+C interrupt handler (HandleInt()), and called at the end of the main program when the application is quitting to make sure we don't accidentally quit and leave things running.

See also:
HandleInt() and SCLAbort()


Variable Documentation

isisclient_t client
 

ISISclient runtime config table for this app.

si_mechanism_t fw
 

Filter wheel mechanism table.

si_drivepars_t fwpar
 

Filter wheel drive parameter table.

int beamoff = 0
 

int loadoff = 0
 


Generated on Thu Jul 22 19:58:42 2004 for Filter Wheel Agent by doxygen 1.3.7