Posted: Mon Aug 13, 2007 8:15 pm Post subject: BufferBlock Timing mismatch
Dear sir,
we are using Logger6x application code alongwith Borland C++. In the following lines... The problem is the time showed is 31 and 47 msec respectively and this patteren repeates itself. I just want to ask why the blockbuffer time is not consistent
//------------------------------------------------------------------------------
// TMain::BlockFilterFilterData() -- Maintain tally of blocks received
//------------------------------------------------------------------------------
void __fastcall TMain::BlockFilterFilterData(TIIBlockFilter *Sender,
TIIBlockBuffer InBuffer, TIIBlockBuffer &OutBuffer,bool &SendOutputData)
{
//Adding My code here
//Add time.h in Mainform.cpp
tic = clock();
Log->Line = tic;
// Keep track of blocks read
BlocksReceived++;
}
Joined: 07 Mar 2006 Posts: 105 Location: Simi Valley, CA.
Posted: Tue Aug 14, 2007 7:09 am Post subject: BufferBlock Timing mismatch
Windows itself takes undetermined time waits.
One possible reason would be is the background processes happening. Using the Task manager try killing everything you do not absolutely need. You can add back one at a time to see if there is some process that pops up and uses time at some interval.
Also you may have to look at services and see if there is some driver that is running that is using time.
Is your data being compromised, if not then your system mat not need any changes at all.
If you are looking for a timing result also look at the DSP card and make sure it is not in some internal wait state. You may find that data collection is being held up because of improper buffer sizing or not enough buffers. There may also be a delay held up by a Get. If you do not have separate threads for the Puts and Gets these can be wating on each other.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum