LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Gpctr_Watch causing error -10920 gpctrDataLossError

Currently using a PXI-6608 card in a PXI chassis. The PXI chassis is connected to the PC via the MXI-3 interface.I am also using NT4.0 as the OS on the PC. I have configured the 6608 card to take Buffered Frequency measurement at a 1HZ rate that is being provided as the gate to counter 1 from counter 0. The measured pulse is applied at PFI-35. When I try to use the Gpctr_Watch function and a loop I always get the -10920 error, unless I set the buffer config to only store 1 point. If I set it to store 10 points I get the -10920 error...unless I put in a delay of 10 seconds after which I immediately reset counter 1. Then when I do a Gpctr_Watch loop..which of course is pointless, there is no error . But what is interesting
is that all 10 elements of the array as called out in the Buffer Config function have been written to. Seems that my system is fast enough, but that it is the Gpctr_Watch function that is 'slowing' down my system. I am also using NI-DAQ 6.9.2. As it is I have a work around with the Delay(), but I would really like to use the Gpctr_Watch function so that my application could be more dynamic.
Thanks,
Carl Mapes
0 Kudos
Message 1 of 3
(2,785 Views)
Hello;

It seems that you are trying to use the Gpctr_Watch to get the count values from the buffer, and that is probably why you are getting that error.

The way to go about that is to use the GPCTR_Read_Buffer function instead, to retrieve the count values from the buffer.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,785 Views)
Filipe,
Yes I am trying to read the Buffer, but only after it has been written to "n times" as set with the buffer config function. That is why I am using Gpctr_Watch. I only want to read the buffer after all of the elements have been written. I am doing a single buffered action and not continous.I am using the Gpctr_Watch to tell me when the buffer has been filled and the counter unarmed.....at least that is what I understood that the single buffered function was suppose to do after the "n Elements" have been written.
Hope this gives you some more insight into what I am trying to do.
Thanks,
Carl Mapes
0 Kudos
Message 3 of 3
(2,785 Views)