Start of trail End of trail navigation bar

Table of Contents

quanser.hardware.task Class

The quanser.hardware.task class provides methods for interacting with tasks associated with a data acquisition card. Tasks are created using the task creation functions of the quanser.hardware.hil class. Once a task is created, the methods of the task listed below may be used to interact with the task instance.

close

Deletes the specified task.

flush

Flushes any remaining samples from the task's internal buffer to the outputs.

read

Reads the specified number of samples from the task's internal buffer.

read_analog

Reads the specified number of analog samples from the task's internal buffer.

read_analog_write_analog

Reads and writes the specified number of analog samples to the task's internal buffer.

read_digital

Reads the specified number of digital samples from the task's internal buffer.

read_digital_write_digital

Reads and writes the specified number of digital samples to the task's internal buffer.

read_encoder

Reads the specified number of encoder samples from the task's internal buffer.

read_encoder_write_pwm

Reads the specified number of encoder samples and writes the specified number of PWM samples to the task's internal buffer.

read_other

Reads the specified number of other samples from the task's internal buffer.

read_other_write_other

Reads and writes the specified number of other samples to the task's internal buffer.

read_write

Reads and writes the specified number of samples to the task's internal buffer.

set_buffer_overflow_mode

Sets the buffer overflow mode for a task.

start

Starts a task.

stop

Stops the specified task.

write

Writes the specified samples to the task's internal buffer.

write_analog

Writes the specified analog samples to the task's internal buffer.

write_digital

Writes the specified digital samples to the task's internal buffer.

write_other

Writes the specified other samples to the task's internal buffer.

write_pwm

Writes the specified PWM samples to the task's internal buffer.

 

navigation bar