Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Ther are PARAMETER LIST DISCREPANCIES in the help file vs the NIDAQ.H header file for GPCTR_Read_Buffer...

PROBLEM: The function help file contains documentation for using GPCTR_Read_Buffer with 7 parmeters in the parameter list. The NADAQ.H Header file contains 8 parameters in the function declaration. Which is right? What is the correct parameter list and can an example be provided that shows how to use the function correctly? I am currently using DAQ ver 6.92 and a 6602 Counter Timer board in a buffered start/stop or ND_BUFFERED_TWO_SIGNAL_EDGE_SEPARATION_MSR application.
0 Kudos
Message 1 of 3
(3,446 Views)
Hello;

The on line help is always the one to be considered.
In theory, the NI-DAQ driver is written in a way that one doesn't need to go inside the header files to figure out the function parameters. Everything should be on the n line help.

Regards
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,446 Views)
Thanks for the response Filipe, I'll let you know how it goes. I only went into the header file because example code provided by NI ... paste ...

iStatus = GPCTR_Read_Buffer(iDevice, ulGpctrNum, ND_READ_MARK, ulReadOffset, ulNumPtsToRead, ulTimeOut, &ulNumPtsRead, pulReadBuf);

showed use of 8 parameters - in agreement with the header file and in disagreement with the on-line help file function documentation.

Tom
0 Kudos
Message 3 of 3
(3,446 Views)