Jump to content

giovanniconoscenti

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

giovanniconoscenti's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Hi I'm trying to do the same in Python but maybe I have an issue with the DAQs. Outside Python you do it with InstaCal, double click one board and enable SYNC output. The pin on the board is the 36, connect the two boards. In Python (and it works with the 1808X) is: from mcculw.enums import ScanOptions slave_scan_options = ScanOptions.BACKGROUND | ScanOptions.EXTCLOCK master_scan_options = ScanOptions.BACKGROUND ul.a_in_scan(board_num, low_channel, high_channel, total_count, sampling_freq, ai_range, memhandle[0], slave_scan_options) ul.a_in_scan(board_num, low_channel, high_channel, total_count, sampling_freq, ai_range, memhandle[1], master_scan_options) it's a minimal example, I can attach my full script but I don't know if the problem is the script itself or the DAQs (they are broken maybe). So, consider it as incomplete, if it works, let me know. 1608FS_CLK.py change the master name and run it with the options: -st ST sampling time [s] (default: 1) -sr SR sampling rate [s] (default: 50e3) -lc LC low channel (default: 0) -hc HC high channel
  2. The components U35 and U39 on my board are broken. The U35 is a MIC2026-2YM, but I'm not able to read what the U39 is.
  3. I still didn't manage to trigger it. Do you have other ideas to debug it?
  4. Thanks for the reply. I wired 21 and 37 and I tried the script, but it's waiting at the Product type. I verified that the digital output is actually working, in fact, I see a 5V output while the bit out is configured as 1.
  5. Hi, I'm sorry if I missed an answer to my question on the forum, but I cannot find it so far. I have a USB-1608FS-PLUS, and I am acquiring an analog signal through Python. I set up a trigger with set_trigger(board_num, TrigType.TRIG_POS_EDGE, 0, 1) and send a trigger with a digital port to the trig_in (pin 21 to 37) with d_bit_out(board_num, DigitalPortType.AUXPORT, 0, 1). The digital signal is sent, and without the ScanOptions.EXTTRIGGER, the a_in_scan is working. However, when I activate the EXTTRIGGER, the acquisition does not start. I include a schematic piece of the code below: ul.d_bit_out(board_num, DigitalPortType.AUXPORT, 0, 0) ul.set_trigger(board_num, TrigType.TRIG_POS_EDGE, 0, 1) scan_options = ScanOptions.BACKGROUND | ScanOptions.EXTTRIGGER ul.a_in_scan(board_num, low_channel, high_channel, total_count, sampling_freq, ai_range, memhandle[i], scan_options) sleep(0.5) ul.d_bit_out(board_num, DigitalPortType.AUXPORT, 0, 1) sleep(0.05) ul.d_bit_out(board_num, DigitalPortType.AUXPORT, 0, 0) I guess the amplitude might not be sufficient to activate proper triggering.
×
×
  • Create New...