07-06-2011 11:40 AM
I am trying to develop a real time plotter to look at ions as the hit an anode which then sends an electrical signal to the computer. The data comes in through a serial port with a baud rate of 115200, no parity or flow control, 1 stop bit, no handshaking. The rates in which I am sampling at are about 200 kHz. I'd like to have the program save, and plot a histogram of the the data as it comes in. I've been using terra-term to collect data and it has had no problems keeping up.
I am currently concerned at this point if it is even possible to use the VISA application at the rate that I would like due to the error:
"VISA: (Hex 0xBFFF006C) An overrun error occurred during transfer. A character was not read from the hardware before the next character arrived."
Are there any suggestions on how to get around this? I am not quite sure how to setup a temporary buffer or something so that program doesn't crash...
I've attached the file I have been using. I am not very saavy with LabView so hopefully there is something obvious going on that I have just missed.
Thanks a lot!
Solved! Go to Solution.
07-06-2011 12:05 PM
separate the reading from visa (do this in a separate while loop) and send the resulting u16 (why use a 64 bit value?) into a queue that is read in a second while loop and put in the histogram.
In that way you read the data probably fast enough not to fill up the hardware buffers.
Also the translation of your data into a value can probably done faster.
07-06-2011 03:33 PM
Thank you for your advice! It works much better now!