The method I showed you uses the analog trigger circuitry and a counter to measure the frequency of the analog signal in hardware. Since there is only one analog trigger circuit per board, you will need to add an additional device for each signal you want to measure.
Alternatively, you could acquire the signals using an AI task and then post process the data in software. Since you know the rate at which you're acquiring data, you can search for the zero crossings in the data and compute the frequency of each cycle of the acquired waveform. You can then compare the frequency of each cycle to determine when the signal changed frequencies.
The advantage of the first method is less software is required since the frequency measurement
is being done in hardware. You can also measure higher frequencies with greater resolution. Using an analog input task, you can only measure frequencies up to 2.5 MHz (following Nyquist)with a resolution of 1/5 MHz. With a counter and the analog trigger circuitry, you can measure 5 MHz signals (bandwidth limitation of the analog trigger circuit) with a resolution of 1/20 MHz. With the counter approach, you can also reduce the amount of data you need to transfer to your application by using the High Frequency with 2 Counters measurement method. This makes it easier to perform live processing of the data instead of storing the data to disk and post processing it.
The main advantage of the second approach is you're able to reach higher channel counts for less money. You'll have to examine the requirements of your application to see which methods makes the most sense for you.