03-24-2015 12:45 PM
Hello All,
I am currently using an NI cDAQ 9178 with NI-9205 inputs to measure an EMG. I am using PFI Line 0 as a start trigger to sync the EMG with some external hardware. I am interested in counting the number of digital edges seen by PFI0. I have read 'Count Digital Events' and it says that it can easily be configured for PFI, but gives no examples. Can anyone help me out here?
Thanks
03-24-2015 04:25 PM - edited 03-24-2015 04:25 PM
Ah you must mean this example:
Count Digital Events with DAQmx
A more versatile version can be found here:
Starting with this second example, take out the triggering section (or just leave it configured to "none" via the front panel tab control).
To specify the counter to use with the 9205 you will have to use the internal channel name ("<chassis>/_<ctrN>"). Configuring the drop-down menu to display internal channels isn't immediately intuitive but it is possible through the right-click menu:
Best Regards,