stop_background()

Stops one or more subsystem background operations that are in progress for the specified board. Use this function to stop any function that is running in the background, including any function that was started with the BACKGROUND option.

Execute stop_background() after normal termination of all background functions to clear variables and flags.

Prototype

stop_background(board_num, function_type)

Parameters

board_num (int)

The number associated with the board when it was installed with InstaCal or created with create_daq_device().

function_type (FunctionType)

Specifies which background operation to stop. Specifies which scan to retrieve status information about. Refer to the function_type parameter values section below.

function_type parameter values

AIFUNCTIONSpecifies analog input scans started with a_in_scan() or a_pretrig().
AOFUNCTIONSpecifies analog output scans started with a_out_scan().
DIFUNCTIONSpecifies digital input scans started with d_in_scan().
DOFUNCTIONSpecifies digital output scans started with d_out_scan().
CTRFUNCTIONSpecifies counter background operations started with c_in_scan.
DAQIFUNCTIONSpecifies a synchronous input scan started with daq_in_scan().
DAQOFUNCTIONSpecifies a synchronous output scan started with daq_out_scan().