I am trying to route a PFI signal to a RTSI signal. Erin B. recommended "It is possible to route an external signal through the board to a RTSI line, but you will need to use GPCTR0 to do this. The way to do this is to connect your external signal to a PFI line and specify that line as GPCTR0's Source. You then have to configure a counter operation such as simple event counting. By doing this, you basically turn on the ability to route that signal elsewhere on the board. Then, call Select_Signal to route GPCTR0 Source to RTSIn. You can then start the counter, and the signal on PFIn will automatically be routed to RTSIn."
However, how would I map the GPCTR0 source to the
PFI? Would the following set of NIDAQ API function calls be the right way to do this (PCI-6071E is device 1 and the AT-AO-10 is device 3)
/* disconnect PFI signal*/
Select_Signal(1, ND_PFI_8, ND_NONE, ND_DONT_CARE );
/* reset GPCTR0 and start simple event counting */
GPCTR_Control(1, ND_COUNTER_0, ND_RESET);
GPCTR_Set_Application(1, ND_COUNTER_0, ND_SIMPLE_EVENT_CNT);
GPCTR_Change_Parameter(1, ND_COUNTER_0, ND_SOURCE, ND_PFI_8);
GPCTR_Change_Parameter(1, ND_COUNTER_0, ND_INITIAL_COUNT, 0);
/* connect RTSI triggerline to GPCTR0 source */
Select_Signal(1, ND_RTSI_6, ND_GPCTR0_SOURCE, ND_LOW_TO_HIGH );
/* connect AT-AO-10's EXTUPDATE to RTSI triggerline */
RTSI_Conn (3, 5, 6, 0);
/* start counting */
GPCTR_Control(1, ND_COUNTER_0, ND_PROGRAM);
As well the RTSI switch is made up of 34 pins but only provides 7 trigger lines. Which of the 34 pins correspond to the 7 trigger lines? I am trying to monitor the outputs on the RTSI pins using a scope to check if t
he mapping actually works.