Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an updated version of "TimeStampChangeDetection.c?"

I am using a PCI-6534 & a PCI-6602 as a Time Interval Analyzer. I came across the code TimeStampChangeDetection.c and it is almost the perfect example for what I wanted. I am wondering if there is an update to this code that uses the RTSI bus to connect the REQ1 pin of the PCI-6534 to the gate of counter 0 of the PCI-6602 (see the code for details). I can get the PCI-6534 REQ1 pin connected to the RTSI bus trigger line 0 using NIDAQ function RTSI_Conn and I believe that I need to use the NIDAQ function Select_Signal for the PCI-6602. However, I'm not sure which parameters to use in
this function call.
0 Kudos
Message 1 of 2
(3,080 Views)
Greetings,

Actually, you are not going to need to use the Select_Signal() function. You will need to modify the following function from the example:

iStatus = GPCTR_Change_Parameter(iCounterDevice, ulGpctrNum, ND_GATE,
ND_DEFAULT_PFI_LINE);

The parameter paramValue needs to be changed. ND_DEFAULT_PFI_LINE should be replaced with ND_RTSI_0. This will configure the counter's gate to be the RTSI 0 line.

Good luck with your application.

Spencer S.
Message 2 of 2
(3,080 Views)