From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
I am working with 6602 card in DAQmx ANSI C. My aplication works in two modes, Buffered Event counting and Buffered Period measurement. I want to switch modes using software instead of hardware. I was using DAQmxConnectTerms () to change the default PFI lines for the specific modes but it wasn't working.
In order to change the default PFI line for each application, you should change the "input terminal" for each. That is DAQmxSetCIPeriodTerm() for period measurement and DAQmxSetCICountEdgesTerm() for eddge counting. By selecting the same input terminal for each application you can eliminate the need to change your external connections.