Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Configure Count Digital Events.vi for PFI Line.

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

0 Kudos
Message 1 of 2
(4,368 Views)

Ah you must mean this example:
Count Digital Events with DAQmx

 

A more versatile version can be found here:

Counter - Count Edges

 

 

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:

 

IO_Name_Filtering.png

FilterNames.png

 

 

Best Regards,

John Passiak
0 Kudos
Message 2 of 2
(4,353 Views)