Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to select Gate for buffered period measurment with PCI 6602

trying to select the gate signal for buffered period measurment with PCI6602 card, I constantly get status=-10123 when calling
status = GPCTR_Change_Parameter (deviceNumber, gpctrNum, ND_GATE,ND_PFI_0);
to setup my hardware, no matter what I input for
ND_GATE, based on the valid choices from function help.
for reference, I also add the cvi source code.
thanks
--
Once the game is over, the king and the pawn go back into the same box.
0 Kudos
Message 1 of 6
(3,874 Views)
Greetings,

Are you selecting a valid value for the paramValue parameter? Above, you have selected NI_PFI_0. However, this is not a valid GATE for any of the counters. Table 4-2 in the 6601/6602 User Manual provides a list of the valid selections for the inputs to the counters. I have included a link to this manual below:

6601/6602 User Manual

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 6
(3,874 Views)
ok - thanks for the hint -
the example above is a result from messing around with the parameters.
however, I do also get status=-10123 when using
ND_PFI_39, which is ok, according to the manual.

werner
--
Once the game is over, the king and the pawn go back into the same box.
0 Kudos
Message 3 of 6
(3,874 Views)
additional comment:
meanwhile, I could do a basic buffered period measurment using PFI_38 as gate, according to the manual.
However, function help for 'GPCTR_Change_Parameter (deviceNumber, gpctr0, ND_GATE, ND_PFI_38)'
gives me only ND_PFI_0 through ND_PFI_9
as valid choices for ND_GATE ???
aditionally, I wonder how to use the internal 80 MHz
timebase as SOURCE, which is no option in
'GPCTR_Change_Parameter (deviceNumber, gpctr0, ND_SOURCE, ND_INTERNAL_20_MHZ)' -
the only valid entrys here are 100 KHz and 20 MHz.
thanks
werner
p.s.:
my final goal is to do a simultaneous buffered period
measurment on all 8 channels at a gate frequency
of up to 40 KHz on each channel.
is this realistic with the 6602 card ?
--
Once the game is over, the king and the pawn go back into the same box.
0 Kudos
Message 4 of 6
(3,874 Views)
...once more:
I wonder if it is possible to do a buffered
period measurment with more than 2 counters:
every time I try this, I get status=-10445
(no more DMA available) upon startup (debug mode).
if I continue at this point (or use a release executable), the whole machine (win2k !) crashes on me
with blue screen,
the message is:
DRIVER_IRQL_NOT_LESS_OR_EQUAL
--
Once the game is over, the king and the pawn go back into the same box.
0 Kudos
Message 5 of 6
(3,874 Views)
The post was answered on another forum.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000050BE0000&UCATEGORY_0=_32_%24_12_&UCATEGORY_S=0
0 Kudos
Message 6 of 6
(3,874 Views)