synchronizing multiple sensors to MaxMSP; millis? interrupt?

Hi PaulS

  1. and 2) apologies; here's the code:
//8 FSRs on pins 0-7; pwr/read+gnd via 10kR
//n00bmeister March 2011
//for MaxMSP
int sigVar;//the pin vals

void setup(){
  Serial.begin (57600);
  
}

void loop(){
  //forloop sequentially reads pins 0-7
  for (int n=0; n<8; n++)
  {
  sigVar=analogRead(n);
  sigVar /= 4; //10bit to 8bit
  Serial.print(sigVar, BYTE);
  Serial.print(255, BYTE);
  delay(5);
  }
  //carriage return OUTSIDE the forloop when testing
  //Serial.println();
  delay(5);
}
  1. sensor1 always arrives 'first' in the packet, but may not show up as the first; it depends when I initialize the [serial] object in MaxMSP - obviously the code is always running and may therefore arrive sixth (but still first in the packet, as it were) - all 8 sensor values will arive in order, but 'shifted' depending on when I start serial communication.

  2. LOL

Thanks for responding

n00bmeister