Hi everybody,
It's only an educated guess but I do think the reason why you are getting some "garbage" data in your reads is that the micro controller response is formatted in to a console response like a VT-100 console for example. HyperTerminal is configured to emulate a console by default (File>>Properties>>Parameters of the current connection).
Considering that:
- The garbage data you're seeing is the formatting that allows the user to see the micro-controller's data in a "formatted way"
- The data you are getting with LabVIEW is the raw data from the buffer but should include somewhere in there the correct answer (like the version for example)
- You probably will have to write a "filter" to be able to extract the correct data out of the frames in the serial buffer
I am currently communicating with chips that sends out the information in a VT-100 console response. What I had to do was:
- Make a raw capture of the buffer ("garbage" and data)
- Open the data in UltraEDIT for e.g
- noticed that the data was represented on the VT-100 emulator screen(like hyperTerm) by system of Vertical and horizontal row (i.e coordinates) and followed by a special termination character (5B in Hex)
- Write a string filter that reads the content of the buffer and locate the data in it.
This is just an example as the behavior will probably be different on your side.
Good Luck
Cyril Bouton
Active LabVIEW Developper