01-06-2006 02:44 PM
01-09-2006 02:01 AM
01-09-2006 09:58 AM
Hi, Lul,
Thank you for your reply.
In my case, I use one thread to send out command, and install a ComCallback in another thread. So I think the send and receive are seperated. It works fine when I set slower update rate on my hardware (even that, it only gets 10pts/s). If I set my hardware to higher update rate, the read/write response slows down. But 'TeraTerm' and HyperTerminal are not affected.
This make me think if LabWindow/CVI rs232 library has some speed limit? My CVI version is 6.0. Will higher version be faster?
Thank you in advance!
01-09-2006 10:33 AM
01-09-2006 10:51 AM
/* Callback Function */
void ComCallback(int portNo, int eventMask, void *data)
{
if(inComCallback) return;
inComCallback=1;
inqlen = GetInQLen (portNo);
if(inqlen>0) ReadRS232Data();
inComCallback=0;
WaitFlag=0;
}
04-16-2009 12:14 PM
can function InstallComCallback be used for checking number of bytes in output queue ?
br
milan.
04-16-2009 12:16 PM