#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 |
si_mechanism_t | scl |
si_drivepars_t | dpars |
|
|
|
Service Ctrl+C Interrupts (SIGINT signals). SIGINT signal trap for trapping Ctrl+C interrupts. Calls abortall() to immediately abort all moves in progress.
|
|
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.
|
|
|
|
|
|
|