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.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to change the default PFI input line

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.

Any ideas or suggestions?

Thanks

Alegrecd
0 Kudos
Message 1 of 3
(3,238 Views)
Hello Alegrecd-

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.

I hope this helps!
gus....
0 Kudos
Message 2 of 3
(3,232 Views)
gus,
Thanks a lot for your answer

Alegrecd
0 Kudos
Message 3 of 3
(3,228 Views)