Hello
I'm trying to make my Arduino measure and send 2 different kinds of information to my PC over USB. I'm using SciLab to read the information. Since I was having trouble with SciLab receiving a lot of information and mixing them up, I tried making the Arduino wait for a character sent by the SciLab before sending any information. This works on the serial monitor of the Arduino IDE. However, I can't make it work correctly with a SciLab script. It works if I type the commands line by line on the SciLab, but still doesn't work on script form. Due to this, I think the problem is related with timing of some kind. I tried using sleep() between the write and the read. It seems to work with a sleep of 1000ms, but that's far too long for a connection like this, so there must be something wrong.
If anyone has experience with this problem or faced a situation similar to what I'm trying to do (make SciLab receive two different variable and not mess them up) please tell me what you did and how it worked.
Thanks in advance
This all sounds like a SciLab problem (whatever that is ). Is there a SciLab Forum?
For receiving data on the Arduino have a look at Serial Input Basics. The concepts may be relevant for SciLab also, even if the details are different.
...R
Robin2:
This all sounds like a SciLab problem (whatever that is). Is there a SciLab Forum?
Of course, it is a SciLab problem!
It's some sort of open-source software.
One would think if one was going to choose to use a specific software that one would know how use that software.
I am certainly not going to go download and install that software just to help the OP.