The tables below list example programs sorted by the program name. It includes the featured function calls, notes, and other functions included in the example program.
Python example program | Featured function | Notes | Other functions included |
CInScan01 | c_in_scan | Scans a range of counter input channels, and writes the data to an array. Board 0 must support counter scans. |
win_buf_alloc_32() win_buf_to_array_32() win_buf_free() |
CInScan02 |
c_in_scan c_config_scan() |
Scans a counter input channel in decrement mode, and writes the data to an array. Board 0 must support counter scans. |
win_buf_alloc_32() win_buf_to_array_32() win_buf_free() |
CInScan03 |
c_in_scan c_config_scan() |
Scans a counter input in encoder mode, and writes the sample data to an array. This example displays counts from encoder as phase A, phase B, and totalizes the index on Z. Board 0 must support counter scans in encoder mode. | win_buf_alloc_32() win_buf_to_array_32() win_buf_free() |
DaqInScan01 | daq_in_scan() | Synchronously scans analog input channels, digital input ports, and counter input channels in the foreground. Board 0 must support synchronous input. | d_config_port() |
DaqInScan02 | daq_in_scan() | Synchronously scans analog input channels, digital input ports, and counter input channels in the background. Board 0 must support synchronous input. |
d_config_port() stop_background() get_status() |
DaqInScan03 |
daq_in_scan() get_tc_values() |
Synchronously scans analog input channels, digital input ports, and thermocouple input channels in the foreground. Board 0 must support synchronous input. | d_config_port() |
DaqDevDiscovery01 | get_daq_device_inventory() | Discovers DAQ devices and assigns board numbers to the detected devices. | create_daq_device() release_daq_device() |
DaqDevDiscovery02 | get_net_device_descriptor() | Discovers network DAQ devices and assigns board numbers to the detected devices. | create_daq_device() release_daq_device() |
DaqOutScan01 | daq_out_scan() | Synchronously writes to an analog output channel and a digital output port in the background. Board 0 must support synchronous output. | d_config_port() |
DaqSetSetpoint01 | daq_set_setpoints() | Configures setpoints, adds the setpoint status to the scan list, and performs asynchronous reads of the setpoint status. Board 0 must support daq_in_scan(). |
daq_in_scan() d_config_port() get_status() stop_background() |
DaqSetTrigger01 | daq_set_trigger() | Configures start and stop triggers. These triggers are used to initiate and terminate A/D conversion using daq_in_scan() with the EXTTRIGGER option selected. Board 0 must support synchronous output. |
d_config_port() stop_background() get_status() |
PulseOutStart01 |
pulse_out_start() pulse_out_stop() | Sends a frequency output to an output timer channel. Board 0 must have a timer output. You enter a frequency and a duty cycle within the timer range. | |
TimerOutStart01 |
timer_out_start() timer_out_stop() | Sends a frequency output to an output timer channel. Board 0 must have a timer output. You enter a frequency within the timer range. | |
ULAI01 |
a_in() a_in_32() |
to_eng_units() to_eng_units_32() | |
ULAI02 | a_in_scan() | FOREGROUND mode |
win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() |
ULAI03 | a_in_scan() | BACKGROUND mode |
get_status() stop_background() win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() |
ULAI06 | a_in_scan() | CONTINUOUS, BACKGROUND mode |
get_status() stop_background() win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() |
ULAI07 | a_trig() | from_eng_units() | |
ULAI08 | a_pretrig() |
win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() | |
ULAI10 | a_load_queue() |
win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() | |
ULAI12 | a_in_scan() | EXTCLOCK mode |
win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() |
ULAI13 | a_in_scan() | Various sampling mode options |
win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() |
ULAI14 | set_trigger() | EXTTRIGGER mode |
a_in_scan() from_eng_units() win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() |
ULAI15 | a_in_scan() | SCALEDATA mode Scans a range of A/D input channels, and stores the scaled data in an array. |
scaled_win_buf_alloc() scaled_win_buf_to_array() win_buf_free() |
ULAIO01 |
a_in_scan() a_out_scan() |
concurrent analog input and output scans |
get_status() stop_background() win_array_to_buf() win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() |
ULAO01 | a_out() | from_eng_units() | |
ULAO02 | a_out_scan() |
win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() | |
ULAO04 | a_out_scan() | SCALEDATA mode Synchronously writes to analog channels in the background. |
|
ULCT07 |
c_load_32() c_load_64() c_in_32() c_in_64() |
Board 0 must have an event counter, or scan counter that doesn't require configuration (such as the USB-1808). | |
ULDI01 | d_in() | d_config_port() | |
ULDI02 | d_bit_in() | d_config_port() | |
ULDI03 | d_in_scan() |
d_config_port() get_status() stop_background() win_buf_to_array() win_buf_to_array_32() win_buf_free() win_buf_alloc() win_buf_to_array_32() win_buf_to_array_64() | |
ULDI06 | d_config_bit() | d_bit_in() | |
ULDO01 | d_out() | d_config_port() | |
ULDO02 | d_bit_out() | d_out() d_config_port() | |
ULFL01 | flash_led() | Board 0 must have an external LED. | |
ULGT03 | get_config() | get_board_name() | |
ULGT04 | get_board_name() | get_config() | |
ULTI01 | t_in() | get_config() | |
ULTI02 | t_in_scan() | get_config() | |
VIn01 | v_in() | Reads an A/D input channel. | |
VOut01 | v_out() | Writes to a D/A output channel. |
Python example program | Featured function | Notes | Other functions included |
a_in.py | a_in() | Returns a single analog input value in counts and converts the data to voltage. | |
v_in.py | v_in() | Returns a single analog input value in voltage. | |
a_in_scan_foreground.py | a_in_scan() | Runs an analog input scan in the foreground at a slow rate and shows the last 10 samples per channel in the buffer on the console. | |
a_in_scan_background.py | a_in_scan() | Runs an analog input scan in the background at a slow rate and shows some of the samples in the buffer on the console. | |
a_in_scan_file.py | a_in_scan() | Runs an analog input scan using a circular buffer and writes the data to a file. | |
v_out.py | a_in() | Outputs a single analog output voltage value. | |
a_out_scan.py | a_out_scan() | Performs an analog output scan; a slow sine wave from one analog output channel will be demonstrated. | |
digital_in.py | d_bit_in() d_in() |
Acquires data from a single digital bit as well as from a digital input port. | |
digital_out.py | d_bit_out() d_out() |
Updates a single digital bit as well as a digital output port. | |
c_in.py | c_in() | Reads events from a counter. | |
timer_out.py | timer_out_start() | Performs a timer output operation. | |
pulse_out.py | pulse_out_start() | Performs a pulse output operation. | |
thermocouple.py | t_in() | Sets up and configures device-specific properties for our thermocouple products and read analog input data as temperature. | |
usb_2408_2416.py | t_in() | Sets up and configures device-specific properties to perform analog input operations on the USB-2408 and USB-2416 devices. | |
daq_in_scan_USB-1800.py | daq_in_scan() | Sets up and configures device-specific properties to perform a DaqInScan operation on the USB-1808 and USB-1808X devices |