Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Counting with Arm Start Trigger with Python - NI-DAQmx

$
0
0

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


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>