10-28-2009 04:51 AM
I am using agilent multifunction DAQ card to send a digital signal output.
I have put the digital output vi inside a while loop and have given asmall delay of 1 msec(I have tried with higher delays also)
I am using Rs232.
The problem i am facing is at 9600 baud rate with flow control none the pgm works fine.
But when I set to higher baud rates flow control none does not work it shows some error like input buffer overflow in the agilent datalogger.
However at higher baud rates XonXoff works without error.
I also wrote into a file the time and digital ooutput value.
The timing between two consecutive readings is not constant while using XonXoFF it varies form 10 to 35 msec.
Can any one suggest what can be done for higher baud rates and constant time interval between two actuations.
10-28-2009 08:54 AM
10-28-2009 09:02 AM
But the variation is less when flow control is set to none.The variation is high when set to XON Xoff why is it so?
Even though there will be variation in timing...which setting would minimize this variation?
10-28-2009 09:14 AM
10-28-2009 08:32 PM
Thanks for the info..however I need to record the value finally in output file so cant skip that part.
maybe i can keep storing in a program and at the end ot the program/loop i can write the whole array into a file.
10-29-2009 09:30 PM
I agree with Dennis that on a Windows system your jitter numbers don't really seem out of line. At the same time, if you are seeing more jitter when using Xon/Xoff flow control, I would recommend using Rts/Cts flow control instead if it is supported by your instrument. When using Xon/Xoff flow control, it is likely that every incoming byte has to be looked at by the driver (depending on the hardware/driver implementation), causing a small amount of overhead when reading serial data. When using Rts/Cts, the flow control signal is signaled by asserting a line, so there is no need for the driver to scour all of the incoming data.
-Jason S.