To download NI software, including the products shown below, visit ni.com/downloads.
Overview:
Demonstrate on dividing an external signal into two or more depending on the value wired to the High Ticks and Low Ticks terminals of the DAQmx Create Channel VI.
Description:
Since the count register has a minimum value of 2, using a default Counter Output task only allows the user to divide-down an external signal by 4 i.e. 2 high ticks, 2 low ticks which means that in every 2 ticks of of the input signal or timebase, the Counter Output will generate a high and followed by a low in another two ticks.
Instead of Toggle Mode as explained earlier, developer may program the counter to use Pulse mode which means that the counter will pulse every time it switches between High Ticks and Low Ticks registers.
Which means that the counter is now configured to emit a short pulse every number of high and low ticks as specified by wiring a constant/control to the High Ticks and Low Ticks input terminals of the DAQmx Create Channel VI.
In this example, wiring a control value of 2 has the effect of dividing down an external signal by 2 i.e. every 2 complete pulses of a timebase signal will generate 1 complete pulse.
Requirements:
LabVIEW 2012 or compatible.
NI-DAQmx 15.5.1 or compatible.
Steps to Implement or Execute Code:
Block Diagram Steps:
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.