Innovative Integration
 
Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
BufferBlock Timing mismatch

 
Post new topic   Reply to topic    II Support Forum Index -> Delfin
View previous topic :: View next topic  
Author Message
syedmoin



Joined: 18 Oct 2006
Posts: 6

PostPosted: Mon Aug 13, 2007 8:15 pm    Post subject: BufferBlock Timing mismatch Reply with quote

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++;
}
Back to top
View user's profile Send private message
gmiller



Joined: 07 Mar 2006
Posts: 105
Location: Simi Valley, CA.

PostPosted: Tue Aug 14, 2007 7:09 am    Post subject: BufferBlock Timing mismatch Reply with quote

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.

Respectfully Gary
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    II Support Forum Index -> Delfin (GMT - 8 Hours)
Page 1 of 1

 
Jump to:  
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

© Copyright 2006-2008 Innovative Integration
Powered by phpBB © 2001, 2002 phpBB Group
Based on iCGstation v1.0 Template By Ray © 2003, 2004 iOptional