Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQ GPCTR_Set_Application fails on ND_SIMPLE_TIME_MSR on DAQCard 6036E

I try to use the 24 bit counter/timer on my DAQCard 6036E to do simple time measurements. I used the example file TIOGPStimeNsoftwareEvents.c and adapted it to do simple time measurements without synchronization.
At line
GPCTR_Set_Application (1, ND_COUNTER_0, ND_SIMPLE_TIME_MSR);
, the application yields a -10120 gpctrBadApplicationError error.
I also get errors on the subsequent GPCTR_Change_Parameter function calls.
I really need help on this on!
I use NI-DAQ 6.9.3 with patch.
0 Kudos
Message 1 of 2
(2,478 Views)
I've found the answer to my questions at:

"Counting the number of quadrature encoded digital pulses using a general purpose counter."
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000052600000&UCATEGORY_0=_32_%24_12_&UCATEGORY_S=0&USEARCHCONTEXT_TIER_0=0&USEARCHCONTEXT_TIER_S=0&USEARCHCONTEXT_QUESTION_0=-10120&USEARCHCONTEXT_QUESTION_S=0

"C Program Measuring Time that Requires a DAQ-STC."
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E8F556A4E034080020E74861&


pvdm
0 Kudos
Message 2 of 2
(2,478 Views)