Show Posts
Pages: [1] 2 3
1  Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 20, 2013, 05:40:40 pm
The code is too large.
But I have solve the problem.
Thanks a lot.
2  Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 20, 2013, 02:58:06 pm
Code:

void loop()
{
                                //overslaan schaal offset, is altijd nul
                                readLength = client.readBytesUntil( ' ', readBuffer, 20 );
                                
                                //lees start hoek
                                readLength = client.readBytesUntil( ' ', readBuffer, 20 );
                                long startHoek = hexCodesToLong( readBuffer, readLength );
                                //Serial.print("start hoek ");
                                //Serial.println(startHoek/10000.0);
                                
                                //lees stap hoek
                                readLength = client.readBytesUntil( ' ', readBuffer, 20 );
                                unsigned long stapHoek = hexCodesToUnsignedLong( readBuffer, readLength );
                                //Serial.print("stap hoek ");
                                //Serial.println(stapHoek/10000.0);
                                
                                //lees data hoeveelheid
                                readLength = client.readBytesUntil( ' ', readBuffer, 20 );
                                dataCount = hexCodesToUnsignedLong( readBuffer, readLength );
                                //Serial.print("data hoeveelheid is gelijk aan ");
                                //Serial.println(dataCount);
                                
                                //lees data
                                for ( unsigned long i = 0; i < dataCount; ++i )
                                  {                
                                    readLength = client.readBytesUntil( ' ', readBuffer, 20 );
                                    float meetWaarde = hexCodesToUnsignedLong( readBuffer, readLength ) * schaal;
                                      
                                      if (meetWaarde > 1200)
                                      {
                                      if(i > 270)
                                      {
                                       geenRijRechts = true;
                                      }
                                    }
                                    
                                  
                                    if (meetWaarde <= 1200 && meetWaarde > 600)
                                    {
                                      if (i > 270)
                                      {
                                        teVerVanRijRechts = true;
                                      }
                                    }
                                    
                                    if (meetWaarde <= 600 && meetWaarde > 350)
                                    {
                                      if (i > 270)
                                     {
                                       rijRechts = true;
                                     }
                                    }
                                    
                                   if (meetWaarde <= 350 && meetWaarde > 10)
                                   {
                                    if (i > 270)
                                    {
                                      botsingRijRechts = true;
                                    }
                                   }
                                  //}

                                  }

             }                        
            }
           }                            
          }        
         }
        }
                        
              
    client.flush();
       // Serial.println(micros()-startTime);
      
        if(botsingRijRechts == true) //&& botsingRijLinks == false)
       {
         snelheid = maneuverSnelheid;
         naarLinks();
         botsingRijRechts = false;
         //Serial.println("botsing rij rechts");
       }
      
        
       if(rijRechts == true)
          {
           snelheid = maneuverSnelheid;
           rechtdoor();
           rijRechts = false;
           //Serial.println("rechtdoor");
          }
      
    
static unsigned long timerStartTime = 0;

if (geenRijRechts == true) {
    if (millis() - timerStartTime > 3000)
        {
         eindeRij = eindeRij + 1;    
         snelheid = maneuverSnelheid;
         Serial.println(eindeRij);
         if (eindeRij % 2 == 0)
         {
          naarRechts();
          Serial.println("bochtNaarRechts");
          geenRijRechts = false;
         }
         else
         {
           naarLinks();
           Serial.println("bochtNaarLinks");
           geenRijRechts = false;
         }

        }
        
}
else
{
    timerStartTime = millis();  // Re-start the timer if boolean is false
}    
    
        
         if(teVerVanRijRechts == true)
         {
            snelheid = maneuverSnelheid;
            naarRechts();
            //Serial.println("te ver van rij rechts");
            teVerVanRijRechts = false;
         }
        
        
        else
        {
                
        uitlezenXpixels = aantalAardbeien * 3 + 1;
  
        clearSerialBuffer();
        Serial.print("#S|LEESWITHE|[");          
        Serial.print(itoa((2), buffer, 10));
        Serial.println("]#");                    
        readSerialString (serInString, 10000);
        nrOfBlinks = atoi(serInString);    
        
        
        
        if(nrOfBlinks > 150 && nrOfBlinks < 500)
        {
           stilstaan();
        }
        }
}

}

void clearSerialBuffer(){
    char dummy;
    while (Serial.available())  {  //Also check for timeout here, also leave space for '\0' at the end of your C-String
      dummy = Serial.read();
      delay(10); //slight delay to allow the buffer to fill up
   }
}


void readSerialString (char *strArray,long timeOut) {
  // Wait up to timeOut miliseconds for data to arrive at the serial port, then read the data and put it in the char array strArray
   long startTime=millis();
   int i = 0;

   while (!Serial.available()) {
      if (millis()-startTime >= timeOut) {
         return;
      }
   }
    while (Serial.available() && i < (serInLen-1) && (millis()-startTime) < timeOut) {  //Also check for timeout here, also leave space for '\0' at the end of your C-String
      strArray[i] = Serial.read();
      i++;
      delay(10); //slight delay to allow the buffer to fill up
   }
   strArray[i]='\0';
}
3  Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 20, 2013, 02:56:15 pm
Thanks a lot, but it doesn't work.
I'm trying to make it clear by giving the whole code.
Excuse me, but the words who are used in the code are written in dutch.

My project is to navigate a robot between rows.
The robot can ride automatically with the help of a laserscanner.
The laserscanner gives the distance and the angel to an object.
Everythings works, but there is only one problem.
When the first row is ended, the robot have to turn right.
When the second row is ended, the robot have to turn left.
You can see it on the picture.
 



meetWaarde = the distance from the object to the laserscanner
i = the angle
geenRijRechts means: The row is ended

Here is the problem... If the first row is ended, the robot has to turn right !
First of all I thaugt to work with a counter.
If (geenRijRechts == true)
{
counter = counter ++;

if (counter % 2 == 0)
{ turnLeft;}

else
{turnRight;}

But it does'nt work because the values of the scanner are reading continuously.
And the counter goes continue ++, and the robot wil continuously turn left and turn right.
With the counter who are recommended have I the same problem.
Can someone help?


4  Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 17, 2013, 08:21:24 am
thanks a lot smiley

I will try it now and let you know of it works.

5  Using Arduino / Programming Questions / Re: Simple question about a boolean on: May 17, 2013, 08:09:06 am

Excuse me that it was not clear.

I want to say:
If the boolean is three seconds or more true, than the action must be taken.

So:

If (boolean == true (for more or for three seconds) )
{
counter ++;
}

6  Using Arduino / Programming Questions / Simple question about a boolean on: May 17, 2013, 08:01:37 am

hello,

Does someone know how to program this:
if (boolean == true during three seconds)
{
...
}

Thanks a lot

7  Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 23, 2013, 04:05:56 pm
How can I create a .flag file ?
And how can I perform this in arduino ?
8  Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 23, 2013, 03:49:52 pm
Thanks a lot smiley
I don't understand everything of your solution with the dummy file.
But I will read and read it again and search on the internet for hoping I find exactly what you mean,
because tomorrow I have to show a good working program.

9  Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 15, 2013, 07:18:26 am
When I send the data from matlab directly to arduino, they give a lot problems with the total program.

10  Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 11, 2013, 10:35:49 am
yes, it is possible in MATLAB to close the file after each update.
But the updates goes very fast, and in arduino (via gobetwino), I open matlab in de void setup(), it runs constantly.
11  Using Arduino / Project Guidance / Re: Gobetwino reading problem on: April 11, 2013, 09:24:04 am
It can be a solution, but how can I make a output.txt file sharable?
12  Using Arduino / Project Guidance / Gobetwino reading problem on: April 11, 2013, 09:00:55 am
Hello,

I have a problem with gobetwino, specially the command RFLIN.
I think the solution is not difficult, but I don't know how to program or change it.

First I will give you more information about the project.
I write data via matlab into output.txt.
Then I read the data of output.txt via gobetwino and dependent of the value, leds will blink.
Matlab runs continuous and write contiunuous data to output.txt.
Why can't gobetwino read data when output.txt is open?
Do someone know how to fix this?
Thanks a lot.


I got the error below from gobetwino.
Reading line 1 from C:\Users\Joris\Documents\MATLAB\output.txt generated an exception.
Can not access the file C: \ Users \ Documents \ MATLAB \ output.txt, because it is being used by another process.

Code:
int serInLen = 25;
int ledGreen = 8; // Groene led op pin 8
int ledRed = 4;// Rode led op pin 4
int ledYellow = 6;
char serInString[25];

void setup()                   
{
  pinMode(ledGreen, OUTPUT); 
  pinMode(ledRed, OUTPUT);
  pinMode(ledYellow, OUTPUT);
  Serial.begin(9600);
  Serial.println("#S|OPENCAMERA|[]#");
  delay(2000);
  Serial.println("#S|OPNMATLAB|[]#");
}

void loop()     
 
{
  char buffer[5];  // long data type has 11 characters (including the minus sign) and a terminating null
  int nrOfBlinks;
  int lineNr;
  int aantalAardbeien;
  int teller;
  int uitlezenXpixels;
      /*
       Your buffer must be large enough to hold the maximum number of characters in the string.
       For 16-bit base 10 (decimal) integers, that is seven characters (five digits, a possible minus sign, and a terminating 0 that always signifies the end of a string);
       32-bit long integers need 12 character buffers (10 digits, the minus sign, and the terminating 0).
       No warning is given if you exceed the buffer size; this is a bug that can cause all kinds of strange symptoms,
       because the overflow will corrupt some other part of memory that may be used by your program.
       The easiest way to handle this is to always use a 12-character buffer and always use ltoa because this will work on both 16-bit and 32-bit values.

      */
     
        lineNr=1;
        clearSerialBuffer();
        Serial.print("#S|LEESWITHE|[");           //Leest de waarden binnen van matlab
        Serial.print(itoa((lineNr), buffer, 10)); //Converteert de integer naar een string en steekt het resultaat in een array
        Serial.println("]#");
        readSerialString (serInString, 10000);
        aantalAardbeien = atoi(serInString);
        Serial.print("#S|LOGTEST|[");
        //Serial.print(itoa((nrOfBlinks), buffer, 10));
        Serial.print(serInString);
        Serial.println("]#");
        //delay(200);
       
       
       
       //antalAardbeien = 3;
        for (teller=1; teller<=aantalAardbeien; teller++)
        {
          digitalWrite(ledYellow, HIGH);
          delay(300);
          digitalWrite(ledYellow, LOW);
          delay(300);
          //Serial.println(teller);
        }

        uitlezenXpixels = aantalAardbeien * 3 + 1;
 
        for(lineNr=2;lineNr<=uitlezenXpixels;lineNr=lineNr+3)
        {
        clearSerialBuffer();
        Serial.print("#S|LEESWITHE|[");           //Leest de waarden binnen van matlab
        Serial.print(itoa((lineNr), buffer, 10)); //Converteert de integer naar een string en steekt het resultaat in een array
        Serial.println("]#");                     //Want er kunnen enkel string-waarden doorgegeven worden naar Gobetwino
        readSerialString (serInString, 10000);
        nrOfBlinks = atoi(serInString);    //Converteert een sting naar een integer
         
        delay(200);
        Serial.print("#S|LOGTEST|[");
        //Serial.print(itoa((nrOfBlinks), buffer, 10));
        Serial.print(serInString);
        Serial.println("]#");
        delay(200);
         
        if (nrOfBlinks > 3 && nrOfBlinks <= 160)
        {
        digitalWrite(ledGreen, HIGH);
        digitalWrite(ledRed, LOW);
        delay(1000);
        digitalWrite(ledGreen, LOW);
        }
       
        else if (nrOfBlinks > 160)
        {
        digitalWrite(ledGreen, LOW);
        digitalWrite(ledRed, HIGH);
        delay(1000);
        digitalWrite(ledRed, LOW);
        }
       }
       delay(100);
}

void clearSerialBuffer(){
    char dummy;
    while (Serial.available())  {  //Also check for timeout here, also leave space for '\0' at the end of your C-String
      dummy = Serial.read();
      delay(10); //slight delay to allow the buffer to fill up
   }
}


void readSerialString (char *strArray,long timeOut) {
  // Wait up to timeOut miliseconds for data to arrive at the serial port, then read the data and put it in the char array strArray
   long startTime=millis();
   int i = 0;

   while (!Serial.available()) {
      if (millis()-startTime >= timeOut) {
         return;
      }
   }
    while (Serial.available() && i < (serInLen-1) && (millis()-startTime) < timeOut) {  //Also check for timeout here, also leave space for '\0' at the end of your C-String
      strArray[i] = Serial.read();
      i++;
      delay(10); //slight delay to allow the buffer to fill up
   }
   strArray[i]='\0';
}
13  Using Arduino / Project Guidance / Re: Little problem with gobetwino on: April 03, 2013, 05:00:37 pm
Many many many thanks smiley
It works perfectly.
Kind regards
14  Using Arduino / Project Guidance / Re: Little problem with gobetwino on: April 03, 2013, 04:35:13 pm
Thanks a lot, but there is a new problem.
He only write the first value of the output.txt file into de logtest.txt file???

logtest.txt:
3/04/2013 23:30:13;91
3/04/2013 23:30:15;0
3/04/2013 23:30:17;0
3/04/2013 23:30:49;90
3/04/2013 23:30:51;0
3/04/2013 23:30:53;0
3/04/2013 23:31:25;90
3/04/2013 23:31:28;0
3/04/2013 23:31:30;0

Status messages:
3/04/2013 23:29:49   Serial port : COM18 opened at 9600 baud
3/04/2013 23:29:51   Commandstring recieved : #S|OPENCAMERA|[]#
3/04/2013 23:29:51   Command parsed OK
3/04/2013 23:29:51   Executing command : OPENCAMERA
3/04/2013 23:29:51   Process : C:\Users\Joris\Documents\MATLAB\AsusViewerTakePictureDef.exe started. Proces ID = 0
3/04/2013 23:29:56   Commandstring recieved : #S|OPNMATLAB|[]#
3/04/2013 23:29:56   Command parsed OK
3/04/2013 23:29:56   Executing command : OPNMATLAB
3/04/2013 23:29:56   Process : C:\Users\Joris\Desktop\test\distrib\test.exe started. Proces ID = 1
3/04/2013 23:30:09   Process: 1 ended and was removed from the runningProcessList
3/04/2013 23:30:11   Commandstring recieved : #S|LEESWITHE|[1]#
3/04/2013 23:30:11   Command parsed OK
3/04/2013 23:30:11   Executing command : LEESWITHE
3/04/2013 23:30:11   Reading line 1 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:30:13   Commandstring recieved : #S|LOGTEST|[91]#
3/04/2013 23:30:13   Command parsed OK
3/04/2013 23:30:13   Executing command : LOGTEST
3/04/2013 23:30:13   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:30:13   Commandstring recieved : #S|LEESWITHE|[2]#
3/04/2013 23:30:13   Command parsed OK
3/04/2013 23:30:13   Executing command : LEESWITHE
3/04/2013 23:30:13   Reading line 2 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:30:15   Commandstring recieved : #S|LOGTEST|[0]#
3/04/2013 23:30:15   Command parsed OK
3/04/2013 23:30:15   Executing command : LOGTEST
3/04/2013 23:30:15   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:30:15   Commandstring recieved : #S|LEESWITHE|[3]#
3/04/2013 23:30:15   Command parsed OK
3/04/2013 23:30:15   Executing command : LEESWITHE
3/04/2013 23:30:15   Reading line 3 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:30:17   Commandstring recieved : #S|LOGTEST|[0]#
3/04/2013 23:30:17   Command parsed OK
3/04/2013 23:30:17   Executing command : LOGTEST
3/04/2013 23:30:17   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:30:32   Commandstring recieved : #S|OPNMATLAB|[]#
3/04/2013 23:30:32   Command parsed OK
3/04/2013 23:30:32   Executing command : OPNMATLAB
3/04/2013 23:30:32   Process : C:\Users\Joris\Desktop\test\distrib\test.exe started. Proces ID = 1
3/04/2013 23:30:42   Process: 1 ended and was removed from the runningProcessList
3/04/2013 23:30:47   Commandstring recieved : #S|LEESWITHE|[1]#
3/04/2013 23:30:47   Command parsed OK
3/04/2013 23:30:47   Executing command : LEESWITHE
3/04/2013 23:30:47   Reading line 1 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:30:49   Commandstring recieved : #S|LOGTEST|[90]#
3/04/2013 23:30:49   Command parsed OK
3/04/2013 23:30:49   Executing command : LOGTEST
3/04/2013 23:30:49   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:30:49   Commandstring recieved : #S|LEESWITHE|[2]#
3/04/2013 23:30:49   Command parsed OK
3/04/2013 23:30:49   Executing command : LEESWITHE
3/04/2013 23:30:49   Reading line 2 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:30:51   Commandstring recieved : #S|LOGTEST|[0]#
3/04/2013 23:30:51   Command parsed OK
3/04/2013 23:30:51   Executing command : LOGTEST
3/04/2013 23:30:51   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:30:51   Commandstring recieved : #S|LEESWITHE|[3]#
3/04/2013 23:30:51   Command parsed OK
3/04/2013 23:30:51   Executing command : LEESWITHE
3/04/2013 23:30:51   Reading line 3 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:30:53   Commandstring recieved : #S|LOGTEST|[0]#
3/04/2013 23:30:53   Command parsed OK
3/04/2013 23:30:53   Executing command : LOGTEST
3/04/2013 23:30:53   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:31:08   Commandstring recieved : #S|OPNMATLAB|[]#
3/04/2013 23:31:08   Command parsed OK
3/04/2013 23:31:08   Executing command : OPNMATLAB
3/04/2013 23:31:08   Process : C:\Users\Joris\Desktop\test\distrib\test.exe started. Proces ID = 1
3/04/2013 23:31:18   Process: 1 ended and was removed from the runningProcessList
3/04/2013 23:31:23   Commandstring recieved : #S|LEESWITHE|[1]#
3/04/2013 23:31:23   Command parsed OK
3/04/2013 23:31:23   Executing command : LEESWITHE
3/04/2013 23:31:23   Reading line 1 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:31:25   Commandstring recieved : #S|LOGTEST|[90]#
3/04/2013 23:31:25   Command parsed OK
3/04/2013 23:31:25   Executing command : LOGTEST
3/04/2013 23:31:25   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:31:25   Commandstring recieved : #S|LEESWITHE|[2]#
3/04/2013 23:31:25   Command parsed OK
3/04/2013 23:31:25   Executing command : LEESWITHE
3/04/2013 23:31:25   Reading line 2 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:31:27   Commandstring recieved : #S|LOGTEST|[0]#
3/04/2013 23:31:27   Command parsed OK
3/04/2013 23:31:28   Executing command : LOGTEST
3/04/2013 23:31:28   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:31:28   Commandstring recieved : #S|LEESWITHE|[3]#
3/04/2013 23:31:28   Command parsed OK
3/04/2013 23:31:28   Executing command : LEESWITHE
3/04/2013 23:31:28   Reading line 3 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 23:31:30   Commandstring recieved : #S|LOGTEST|[0]#
3/04/2013 23:31:30   Command parsed OK
3/04/2013 23:31:30   Executing command : LOGTEST
3/04/2013 23:31:30   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 23:32:36   Process: 0 ended and was removed from the runningProcessList

Command output:
3/04/2013 23:29:51 :   0
3/04/2013 23:29:56 :   1
3/04/2013 23:30:11 :   91
3/04/2013 23:30:13 :   0
3/04/2013 23:30:13 :   178
3/04/2013 23:30:15 :   0
3/04/2013 23:30:15 :   99
3/04/2013 23:30:17 :   0
3/04/2013 23:30:32 :   1
3/04/2013 23:30:47 :   90
3/04/2013 23:30:49 :   0
3/04/2013 23:30:49 :   178
3/04/2013 23:30:51 :   0
3/04/2013 23:30:51 :   80
3/04/2013 23:30:53 :   0
3/04/2013 23:31:08 :   1
3/04/2013 23:31:23 :   90
3/04/2013 23:31:25 :   0
3/04/2013 23:31:25 :   178
3/04/2013 23:31:28 :   0
3/04/2013 23:31:28 :   80
3/04/2013 23:31:30 :   0

15  Using Arduino / Project Guidance / Re: Little problem with gobetwino on: April 03, 2013, 03:49:12 pm
Status messages:
3/04/2013 22:46:45   Serial port : COM18 opened at 9600 baud
3/04/2013 22:46:46   Commandstring recieved : #S|OPENCAMERA|[]#
3/04/2013 22:46:46   Command parsed OK
3/04/2013 22:46:46   Executing command : OPENCAMERA
3/04/2013 22:46:46   Process : C:\Users\Joris\Documents\MATLAB\AsusViewerTakePictureDef.exe started. Proces ID = 0
3/04/2013 22:46:51   Commandstring recieved : #S|OPNMATLAB|[]#
3/04/2013 22:46:51   Command parsed OK
3/04/2013 22:46:51   Executing command : OPNMATLAB
3/04/2013 22:46:51   Process : C:\Users\Joris\Desktop\test\distrib\test.exe started. Proces ID = 1
3/04/2013 22:47:02   Process: 1 ended and was removed from the runningProcessList
3/04/2013 22:47:06   Commandstring recieved : #S|LEESWITHE|[1]#
3/04/2013 22:47:06   Command parsed OK
3/04/2013 22:47:06   Executing command : LEESWITHE
3/04/2013 22:47:06   Reading line 1 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 22:47:08   Commandstring recieved : #S|LOGTEST|[1]#
3/04/2013 22:47:08   Command parsed OK
3/04/2013 22:47:08   Executing command : LOGTEST
3/04/2013 22:47:08   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 22:47:08   Commandstring recieved : #S|LEESWITHE|[2]#
3/04/2013 22:47:08   Command parsed OK
3/04/2013 22:47:08   Executing command : LEESWITHE
3/04/2013 22:47:08   Reading line 2 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 22:47:10   Commandstring recieved : #S|LOGTEST|[71]#
3/04/2013 22:47:10   Command parsed OK
3/04/2013 22:47:10   Executing command : LOGTEST
3/04/2013 22:47:10   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt
3/04/2013 22:47:10   Commandstring recieved : #S|LEESWITHE|[3]#
3/04/2013 22:47:10   Command parsed OK
3/04/2013 22:47:10   Executing command : LEESWITHE
3/04/2013 22:47:10   Reading line 3 from C:\Users\Joris\Documents\MATLAB\output.txt succeeded.
3/04/2013 22:47:12   Commandstring recieved : #S|LOGTEST|[165]#
3/04/2013 22:47:12   Command parsed OK
3/04/2013 22:47:12   Executing command : LOGTEST
3/04/2013 22:47:12   Data logged to C:\Users\Joris\Documents\gobetwino\testlog.txt

Command output:
3/04/2013 22:46:46 :   0
3/04/2013 22:46:51 :   1
3/04/2013 22:47:06 :   71
3/04/2013 22:47:08 :   0
3/04/2013 22:47:08 :   165
3/04/2013 22:47:10 :   0
3/04/2013 22:47:10 :   109
3/04/2013 22:47:12 :   0

Would you like to see something else?
Thanks
Pages: [1] 2 3