04-02-2015 02:04 PM
Okay, would you be able to point me in the right direction for how to keep up with the flow of data?
I've added a simple error handler at the end of the error stream. It can be seen in the attached.
04-02-2015 02:05 PM - edited 04-02-2015 02:07 PM
If your buffer is getting stuffed that much I would really like to see a sippet of the code with the strings shoing display style (running 2013sp1 at work so I can't open the vi) I expect there are some 0x0A's and some unprintable chars in the data.
@ Kelly- Why are you "Opening" an open VISA session? Select that Ctrl+Space Ctrl+Shift+R. You don't need it
04-02-2015 02:08 PM
04-02-2015 02:09 PM
@hp43 wrote:
One thing I've used to try and detect what's going on is the VISA Bytes At Serial Port property node within the while loop, and it is about 12,000. Not sure is this is expected / okay?
If you are actually using the termination character, get rid of that wait in the loop. The VISA Read waiting for data will limit the rate of the loop, so there is no need to have the wait. That wait is likely what is keeping you from being able to keep up with the data stream.
04-02-2015 03:18 PM
@Jeff,
I was just showing error handling. I didn't even look at the rest of the code closely enough to notice the VISA Open not needed.
04-02-2015 03:46 PM - edited 04-02-2015 03:47 PM
@crossrulz wrote:
@hp43 wrote:
One thing I've used to try and detect what's going on is the VISA Bytes At Serial Port property node within the while loop, and it is about 12,000. Not sure is this is expected / okay?
If you are actually using the termination character, get rid of that wait in the loop. The VISA Read waiting for data will limit the rate of the loop, so there is no need to have the wait. That wait is likely what is keeping you from being able to keep up with the data stream.
Ok, when I remove the Wait funciton the number of bytes at serial port reduces to 0 (though there are still erroneous measurements). However, the program is also unstable and causes my computer to blue screen. Should the Baud rate be reduced further?
Mike - execution highlighting is not on.
04-02-2015 03:47 PM
Exactly what instrument are you using this with?
04-02-2015 03:56 PM
@kbbersch wrote:
Exactly what instrument are you using this with?
It is a Freescale FRDM-KL25Z, using the OpenSDA port, communicating with a Kinetis K-series serial to usb chip.