I downloaded those examples and ran them, but I am still having issues with the USB-2523. I plugged it in, but the program says no devices found (see output below). The USB-2523 shows up in Instacal and works correctly in TracerDAQ, so this doesn't seem to be an issue with how the daq or how it is connected.
> python .\examples\console\digital_out.py
Error: No DAQ devices found
If I unplug the USB-2523 and plug in a USB-1408FS I have lying around, that works fine. For example, the output from a_in_scan_foreground.py:
> python .\examples\console\a_in_scan_foreground.py
Found 1 DAQ device(s):
USB-1408FS (1B902F6) - Device ID = 161
Active DAQ device: USB-1408FS (1B902F6)
Scan completed successfully. Data:
Index CH0 CH1 CH2 CH3
0 0.000 0.000 0.000 0.000
1 -0.002 -0.002 -0.002 -0.002
2 0.000 -0.002 0.000 -0.002
3 0.000 0.000 0.000 0.000
4 0.000 0.000 0.000 -0.002
5 -0.002 0.000 -0.002 0.000
6 -0.002 0.000 -0.002 0.000
7 0.000 0.000 0.000 0.000
8 -0.002 0.000 0.000 -0.002
9 0.000 -0.002 -0.002 0.000
As a test, I made a couple small modifications to the a_in_scan_foreground.py example to use Instacal instead of the UL device detection.
try: # line 49
# commenting out device_detection to use board 0 from instacal instead
# if use_device_detection:
# config_first_detected_device(board_num, dev_id_list)
daq_dev_info = DaqDeviceInfo(board_num)
# print device name and whether it supports analog input
print("Device product number: ", daq_dev_info.product_name)
print("Supports analog:", daq_dev_info.supports_analog_input)
if not daq_dev_info.supports_analog_input:
raise Exception('Error: The DAQ device does not support '
'analog input')
return # adding a return here to end the program before measuring
When I run that with each device plugged in, I get the following outputs:
> python .\examples\console\a_in_scan_foreground.py
Device product number: USB-1408FS
Supports analog: True
> python .\examples\console\a_in_scan_foreground.py
Device product number: USB-2523
Supports analog: False
Error: The DAQ device does not support analog input
Is there something else I need to set up to get the analog input working with the USB-2523?