09-18-2014 11:13 AM
Ok.
I'm communicating via RS-232, I'm just reading frames and translating them. That's all.
09-18-2014 11:17 AM
The format of the data is ASCII that I modified into HEX to be able to know what it is.
09-18-2014 02:41 PM
@Yasmine90 wrote:
The format of the data is ASCII that I modified into HEX to be able to know what it is.
I'm sorry, I think I was unclear. I meant do you have a specification? It seems that (maybe) you are making this moer complicated than it has to be.
09-19-2014 10:30 AM
Hi,
What do you mean by specification? As I told you before I'm just reading the micro's data.
I'm pretty sure there's a simpler way to do this.
Is a state machine better in this case? if yes how can I modify my VI in order to obtain it? 😕
Best Regards.
09-19-2014 10:44 AM - edited 09-19-2014 10:45 AM
The specification he is talking about is something that describes precisely what the data stream looks like. What bytes are being sent? What do they mean? Is there a termination character being sent at the end of every message?
Don't worry about a state machine yet. While is it an often used design architecture that is an improvement on many people's first attempt at code, it won't solve communication problems. Until you know what data is being sent, what it means, and how to handle it, you are going to have problems no matter what design architecture you use.