Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Erhalte Fehlernummer -10809 beim Aufruf von GPCtr_Control(1,13400,ND_Program)

While calling "GPCtr_Control(1,13400,ND_Program)" from VB 6.0 SP6 I receive error -10809 and I don't know why. Before I call "GPCtr_Set_Application(1,13400,ND_Single_Pulse_Width_MSR)". Can anybody help me? I use this call in several other applications without getting any errors. TD NI-DAQ 7.4.4f7 on Win XP SP2 is installed. Thanks in advance!
0 Kudos
Message 1 of 2
(2,586 Views)

Hello Linde,

 

thank you for posting at the National Instruments Forum. I found the following in our internal databases related to your problem:

 

"Just like the error says, you are arming the counter to measure the pulse width (e.g. high time) while the signal is currently high. So, it generates an error, otherwise you would get bad data and not know it. To illustrate, open the Measure Buffered Pulse (DAQ-STC) example. Set source to 20MHz clock and buffer size to 100. Run this a couple of times and you'll see that occasionally, the first sample returned in the array is different than the rest. That's because the counter was initially armed during the high time. It starts counting, but obviously can't measure the entire pulse width because some of the pulse has already occurred. There are a couple of work arounds that could be used:

  1. Use the equivalent example in DAQmx. In DAQmx, if you arm the counter in the middle of the high portion of the signal, it will wait until the next full high time for measurement (it's smarter than Traditional DAQ).
  2. However, if you must use Traditional DAQ, then you could perform a short finite buffered measurement and then disregard the first sample.
  3. Use an M Series or TIO counter with the arm start trigger. "

There is also another post related to the same issue: http://forums.ni.com/ni/board/message?board.id=40&message.id=889&requireLogin=False

By the way: you did not mention which hardware you are using.

 

 

Best regards


Message Edited by MarianMO on 10-01-2009 07:06 PM
Marian Vorderer
0 Kudos
Message 2 of 2
(2,568 Views)