01-17-2014 07:26 PM
Objective: Simulate Arduino's Serial Monitor using Labview's Basic Serial Write and Read.Vi.
Problem: When a continuous stream of ASCII data is sent to the Basic Serial Write and Read.VI it stops reading after approximately 3 seconds. Whereas it should continually read data even when there is more data than can fit in the Read String Indicator. Ideally it should push old data off the top of the display and show new data at the bottom of the display.
What modification should I make to the Basis Serial Write and Read.VI to simulate Arduino's Serial Monitor?
Howard
Solved! Go to Solution.
01-17-2014 08:16 PM
01-17-2014 11:16 PM
hi howard, can you upload you VI (in 2011)
01-18-2014 02:09 PM
Hello Ranjeet,
The Basic Serial Write and Read.VI I am using is an example that comes with Labview. I just checked and it is available with Labview 2011. Attached is a zip file copy of the Arduino sketch I am using for comparing the performance of Arduino's Serial Monitor and Labview's Basic Serial Write and Read.VI
Howard
01-18-2014 03:37 PM
01-18-2014 04:25 PM
Hello Ranjeet.
The point is the Basic Serial Write and Read.VI produced the problem I described in my initial post. It is the starting point I am using to create a Labview serial monitor that is better suited for working with micro controllers than the Basic Serial Write and Read.VI. If you are unwilling to offer suggestions on how to modify the Basic Serial Write and Read.VI. please stop asking for information that is not applicable to the problem. .
Howard
01-18-2014 05:12 PM
01-18-2014 06:26 PM
Hello Dennis,
I like your suggestions but haven't tried them yet.
With respect to Ranjeet I thought a simple answer like telling him where the Basic Serial Write and ReadVI could be found would answer his query. But no he wanted to go off on a tangent.
Thank you. I appreciate your direct and to the point advice.
Howard
01-18-2014 09:32 PM - edited 01-18-2014 09:35 PM
Unfortunately, Ranjeet has a tendency to do that at times.
However in this case, he wasn't on a tangent. He wanted to see YOUR VI in an older version he'd be able to open. We don't care about the LabVIEW example. We've all seen that thousands of times.
01-19-2014 05:55 PM
Hello Dennis,
Your recommendation to put the Read in a while loop fixed the problem of the Basic Serial Write and Read.VI not being able to continuously read data for the continuous stream of input data case.
However, I could not get the VI to simulate Arduino's Serial Monitor. When the Arduino Serial monitor gets to the bottom of the screen it pushes each line up, the oldest line is pushed off the screen and the newest line is displayed at the bottom of the screen, Whereas with the test program I used when the termination character is ON only one line is displayed. Each line of data is terminated in a new nine character. Changing the rate of arrival of data did not changed the number of lines of data displayed. When the termination character is OFF multiple lines of data could be displayed. The number of lines displayed is a function of the rate of arrival of data. However, instead of scrolling the display all displayed data is replaced simultaneously. For example with a full screen display all of the old data was erased and replace in one step.
My question is does the String Indicator have other modes of operation? Does if have a scrolling mode or am I stuck with the mode described above?
I tried attaching my modified Basic Serial Write and Read.VI but couldn't because I got the "contents of the attachment doesn't match its file type" error.
Thank you for your Help
Howard