We are trying to arm start trigger with the DAQ board to acquire data from a single photon counter. We developed the code like this:
# Create a counter task:
readTask = nidaqmx.Task()
channel = readTask.ci_channels.add_ci_count_edges_chan("Dev1/ctr0","", initial_count=0, edge=Edge.RISING, count_direction=CountDirection.COUNT_UP)
channel.ci_count_edges_term = "PFI0"
#Configure start trigger
readArmTrig = readTask.triggers.arm_start_trigger
readArmTrig.trig_type = TriggerType.DIGITAL_EDGE
readArmTrig.dig_edge_src="PFI4"
However I don't think the program reads the ci_channel with the trigger we defined. Do anyone know how to enable the arm trigger for a digital counter? Thanks.
Jon