Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

General input PFI_33 on PCI-6602

Hi,

I don't know how can i setup digital line PFI_33 on PCI-6602 as general
input and how can i read it. DIG_Line_Config and DIG_In_Line function work
only for PFI_0 to PFI_7. Port 0 and Line 33 or Port 4 and Line 1 (PFI_33)
don't work with this function and return status -10006 and -10007.

Thank you for any answer

Petr


---
Odchozi zprava neobsahuje viry.
Zkontrolovano antivirovym systemem AVG (http://www.grisoft.cz).
Verze: 6.0.307 / Virova baze: 168 - datum vydani: 11.12.2001
0 Kudos
Message 1 of 2
(2,109 Views)
If you are doing digital input, you do not need to distinguish between counter lines and digital lines. You can read from any line by using the digital read functions. DIG_In_Line, DIG_In_Prt, DIG_Line_Config, DIG_Out_Line, DIG_Out_Prt, and DIG_Prt_Config all work with the 6602, the port parameter should be '0' and possible lines to use are 0 to 31, the directions of the lines are configurable on a per line basis.



If you want to use the programmable function input (PFI) lines for digital output, then you can configure them for digital output on a line-by-line basis.

In the C application programming interface (API), you can use the DIG_Line_Config function to configure the lines individually as output, and you can use the DIG_Out_Line function to perform the ou
tput.

Make sure you have the port set to 0. If this does not work, let me know.
Brian
0 Kudos
Message 2 of 2
(2,109 Views)