E-Man,
NI doesn't, as far as I know, have a 6022..Is it a 6023 maybe ?
Given that, there are different ways you can measure frequency.
Use the counter instead of AI:
(1) Examples under MeasurementStudio\DotNET\Examples\DAQmx\Counter\MeasureDigitalFrequency
(2) You can use AI with DAQmx to measure frequency directly on devices that support it.
E.g. An SCXI 1126 supports using an AI channel to measure frequency.
Example under MeasurementStudio\DotNET\Examples\DAQmx\AnalogIn\MeasureFrequency.
An easy way to find out if your card supports creating a frequencyVoltage measurement, is to go to Data Neighbourhood in MAX, and create an AnalogInput task, that measures Frequency. If you have a device that supports this it will work, else it will tell you that no supported devices were found. The 6023 does NOT support this.
(3)Another way to calculate frequency is by using the MeasurementStudio analysis functions
explained in this threadYou may have to use this approach to measure your frequency.
Hope this helps.
Nandan Dharwadker
Staff Software Engineer
Measurement Studio Hardware Team