LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about DAQ PFI lines

Hi , I would like to use 6363 OEM PFI lines to countiously count the number of rising edges of a digital signal. My signal is connected to PFI2 line . I would also like to output a pulse to provide external clock for this signal

 

Here are the input output pins configuration. Could you please let me know which lines can I use for counter in and which lines for outputing a pulse. Can I also use PFI 2 for counter inpout?

 

thanks 

 

CTR 0 SRC PFI 8
CTR 0 GATE PFI 9
CTR 0 AUX PFI 10
CTR 0 OUT PFI 12
CTR 0 A PFI 8
CTR 0 Z PFI 9
CTR 0 B PFI 10
CTR 1 SRC PFI 3
CTR 1 GATE PFI 4
CTR 1 AUX PFI 11
CTR 1 OUT PFI 13
CTR 1 A PFI 3
CTR 1 Z PFI 4
CTR 1 B PFI 11
CTR 2 SRC PFI 0
CTR 2 GATE PFI 1
CTR 2 AUX PFI 2
CTR 2 OUT PFI 14
CTR 2 A PFI 0
CTR 2 Z PFI 1
CTR 2 B PFI 2
CTR 3 SRC PFI 5
CTR 3 GATE PFI 6
CTR 3 AUX PFI 7
CTR 3 OUT PFI 15
CTR 3 A PFI 5
CTR 3 Z PFI 6
CTR 3 B PFI 7
FREQ OUT PFI 14

 

0 Kudos
Message 1 of 5
(4,313 Views)

Hi,

 

the following information should answer your question:

 

X Series devices have up to 16 PFI lines.  Each PFI can be individually configured as the following:

 

  1. Static Digital Input
  2. Static Digital Output
  3. Timing Input Signal for AI, AO, DI, DO, or counter/timer functions
  4. Timing Output Signal from AI, AO, DI, DO, or counter/timer functions

Each PFI can be individually configured as a static digital input or a static digital output. When a terminal is used as a static digital input or output, it is called P1.x or P2.x. On the I/O connector, each terminal is labeled PFI x/P1.x or PFI x/P2.x. The voltage input and output levels and the current drive levels of the PFI signals are listed in the specifications of your device.

Also, PFI can be configured to detect digital changes. The values on the PFI lines cannot be read in a hardware-timed task, but they can be used to fire the change detection event. For example, if you wanted to do change detection on eight timed DIO lines but wanted to ensure that the value of
the lines was updated every second independent of the eight lines changing you could set a PFI line up for change detection and connect a 1 Hz signal to it.

You can enable a programmable debouncing filter on each PFI, RTSI, PXI_STAR, or PXIe-DSTAR<A, B> signal. When the filters are enabled, your device samples the input on each rising edge of a filter clock. X Series devices use an onboard oscillator to generate the filter clock.

 

Regards,

Michael

0 Kudos
Message 2 of 5
(4,285 Views)

Hi MHoffmann

 

Thank you for the provided information. Do you know how can I configure the PFI line in LabVIEW to be used as counter. Is there any vi for that

thanks

0 Kudos
Message 3 of 5
(4,269 Views)

Also I see PFI 2 is connected to CTR 2 B , Does it mean that I can use this line as counter input ( lets's say Dev1.ctr2)? 

0 Kudos
Message 4 of 5
(4,258 Views)

Hi,

 

this link shows you how to route Counter lines in LabVIEW:

 

Internally Routing Counter Signals in LabVIEW

http://digital.ni.com/public.nsf/allkb/8A85E97855EDADC98625730C00065F58?OpenDocument

 

 

As Counter Input I would use CTR 2 SRC, if you use a TTL counter input. CTR 2 B is supposed for one of the two quadrature encoder signals.

 

Regards,

Michael

 

0 Kudos
Message 5 of 5
(4,232 Views)