Hi Frank-
I've created two wrapper functions that will allow you to internally connect and disconnect a counter source or gate line from either of the two TIO chips on the NI-6602's to one of the RTSI lines. These are attached in the modified 660x example programs.
Keep in mind that there is no resource management included in these functions. Any routes that you create will remain connected until they are either explicitly disconnected (using the attached function) or the computer is rebooted. In addition, using these routing functions, it is possible to double-drive a RTSI line from two source or gate lines, possibly damaging the board. I would recommend putting a very low limit on the number of routes a user is able to create at a single time, or adding some other form of resource management, before including these capabilities in a "shipping version" of your driver.
That said, I hope these functions help. Please post back if you have any questions. Thanks-
Ed W.Message Edited by Ed W on 07-24-2008 02:56 PMMessage Edited by Ed W on 07-24-2008 02:57 PM
gpct_ex2_mod.cpp:
http://forums.ni.com/attachments/ni/90/1330/2/gpct_ex2_mod.cpp
gpct_ex1_mod1.cpp:
http://forums.ni.com/attachments/ni/90/1330/3/gpct_ex1_mod1.cpp