08-26-2022 03:20 PM
08-27-2022 03:56 AM
As getting started, have a look here: https://forums.ni.com/t5/Counter-Timer/pulse-count-using-NI-9403-DIO-module/td-p/2177136
08-28-2022 06:49 PM
Even simpler, to get started, try out some of the shipping examples for counters.
I don't do a lot of cDAQ stuff, but you'll find that:
1. your cDAQ chassis contains internal counters
2. those counters can interact with signals on your DIO module. Counters can measure stuff coming into a DI channel or can send stuff out a DO channel that it generates internally.
3. the drop-down menus for specifying the cDAQ "terminal" to use for the measurement will let you self-discover the right syntax better than I can try to recite from memory.
The previous link will also get you to some good stuff, but it's more advanced. It *does* illustrate a generic version of the channel and terminal syntax, but on your own system some of the names might be different. Still, the pattern will at least be analogous (for channels: "Device/channel", for terminals "/Device/signal". Note the leading '/' forward slash in the terminal syntax. But the drop-down menu will show you this too.)
-Kevin P
-Kevin P