Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How do I Specify my PFI Line as an External Clock Using Traditional NI-DAQ (Legacy) in LabWindows/CVI?

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 2.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Multifunction DAQ (MIO)>>E Series

Problem:
I am using LabWindows/CVI to specify an external clock on a PFI line using Traditonal NI-DAQ. In LabVIEW I can use the AI Clock Config to specify a PFI line as an external clock but how do I achieve this in LabWindows/CVI?

Solution:
In order to specify an external clock using LabWindows/CVI you need to use the select_signal function .

status = Select_Signal (deviceNumber, signal, source, sourceSpec)

The following table summarizes the signals and sources for the I/O connector pins PFI0 through PFI9.

signal source sourceSpec
ND_PFI_0 through ND_PFI_9 ND_NONE ND_DONT_CARE
ND_PFI_0 ND_IN_START_TRIGGER ND_LOW_TO_HIGH
ND_PFI_1 ND_IN_STOP_TRIGGER ND_LOW_TO_HIGH
ND_PFI_2 ND_IN_CONVERT ND_HIGH_TO_LOW
ND_PFI_3 ND_GPCTR1_SOURCE ND_LOW_TO_HIGH
ND_PFI_4 ND_GPCTR1_GATE ND_POSITIVE
ND_PFI_5 ND_OUT_UPDATE ND_HIGH_TO_LOW
ND_PFI_6 ND_OUT_START_TRIGGER ND_LOW_TO_HIGH
ND_PFI_7 ND_IN_SCAN_START ND_LOW_TO_HIGH
ND_PFI_7 ND_IN_SCAN_IN_PROG ND_LOW_TO_HIGH
ND_PFI_8 ND_GPCTR0_SOURCE ND_LOW_TO_HIGH
ND_PFI_9 ND_GPCTR0_GATE ND_POSITIVE

You can use ND_NONE to disable output on the pin. The table above can also be found in the Traditional DAQ (Legacy) C Function Reference Help.


As an example to specify the PFI2 as an external clock in Traditional DAQ, you would call the following function :
Select_Signal(Board, ND_IN_SCAN_START, ND_PFI_2, ND_LOW_TO_HIGH);

Related Links:

Attachments:





Report Date: 01/18/2007
Last Updated: 01/18/2007
Document ID: 45HID49U

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit