Tscope5
|
Go to the source code of this file.
Functions | |
Response registration | |
Parallel port boxes can be used as response devices. See timer.c for more information about response registration. | |
int | ts5_define_parport_key (int device, int key) |
double | ts5_set_parport_button_debounce_time (int device, double button_debounce_time) |
double | ts5_get_parport_button_debounce_time (int device) |
Trigger input/output | |
The parallel ports can be used as trigger input/output devices. See timer.c for more information about trigger input/output. | |
void | ts5_define_parport_trigger_input (int device) |
void | ts5_simulate_parport_trigger_input (int device, unsigned char value, double interval) |
double | ts5_set_parport_trigger_debounce_time (int device, double trigger_debounce_time) |
double | ts5_get_parport_trigger_debounce_time (int device) |
void | ts5_send_parport_trigger (int device, unsigned char value) |
double | ts5_set_parport_trigger_output_time (int device, double trigger_output_time) |
double | ts5_get_parport_trigger_output_time (int device) |
Definition in file parport.c.
int ts5_define_parport_key | ( | int | device, |
int | key | ||
) |
Define a parallel port key as a response key.
device | Number of the parallel port (devices are numbered from 1). |
key | Number of the key (keys are counted from 1). |
Give a positive number for the key if you want to monitor key press events, a negative number if you want to monitor key release events.
double ts5_set_parport_button_debounce_time | ( | int | device, |
double | button_debounce_time | ||
) |
Set the button debounce time of a parallel port response box.
device | Number of the parallel port |
button_debounce_time | Debounce time in seconds |
The debounce time is the minimum amount of time between two state changes of the buttons of the box before Tscope5 really counts it as a state change. On some button boxes it is necessary to set this value because the press or release of a button causes a ripple in the electrical current sent to the parallel port (instead of a single state change between on and off).
The debounce time is the amount of time between the press and the release of a button (or vice versa). So the minimum amount of time between two presses (or two releases) will be twice the debounce time set here.
The default debounce time is set to 0.0 (because the button boxes at our department have an internal debouncing circuit).
double ts5_get_parport_button_debounce_time | ( | int | device | ) |
void ts5_define_parport_trigger_input | ( | int | device | ) |
void ts5_simulate_parport_trigger_input | ( | int | device, |
unsigned char | value, | ||
double | interval | ||
) |
double ts5_set_parport_trigger_debounce_time | ( | int | device, |
double | trigger_debounce_time | ||
) |
double ts5_get_parport_trigger_debounce_time | ( | int | device | ) |
void ts5_send_parport_trigger | ( | int | device, |
unsigned char | value | ||
) |
double ts5_set_parport_trigger_output_time | ( | int | device, |
double | trigger_output_time | ||
) |