Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you set how long to count say 250mS using the 2 counters on the PXI-6289 and DAQmx?

I need to start the counter to start counting for 250ms and stop. Can the PXI-6289 2 counters do this using the DAQmx VI's or do I have to use the traditional VI's? Any examples would be appreciated.
0 Kudos
Message 1 of 2
(3,052 Views)
BAE_Bob,

Do you require exact 250ms precision, or would software timing work for you? If software timing is ok, you simply need to start your counter task and wait 250ms before using the DAQmx Read VI. If you need a more precise 250 ms, you could use one counter to be the pause trigger for the other. In this scenario, you would need to use a property node to set the pause trigger of the counting counter to the output of the pulse generation counter. The pulse generation counter would output 250ms pulse, allowing the counting counter to count for this exact period. After this, read the value of the counter and it will reflect the count during this period.

Hope this helps,
Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments
0 Kudos
Message 2 of 2
(3,045 Views)