ROBOTC.net forums
http://www.robotc.net/forums/

Opcode is not supported by my processor
http://www.robotc.net/forums/viewtopic.php?f=14&t=3624
Page 1 of 1

Author:  panda [ Thu Oct 20, 2011 9:00 am ]
Post subject:  Opcode is not supported by my processor

Image

this is my error message, this is my code:


#pragma config(Sensor, S1, Light, sensorLightInactive)

const string FILENAME = "lightreadings.dat";
const int NUMSAMPLES = 97;
const int SAMPLEINTERVAL = 15; // in minutes
task main() {
TFileIOResult nIOResult;
TFileHandle LIGHTFILE;
int FileSize = 2*NUMSAMPLES;
int i,j;
OpenWrite(LIGHTFILE, nIOResult, FILENAME, FileSize);
for(i=1;i<=NUMSAMPLES;i++) {
WriteShort(LIGHTFILE, nIOResult, SensorValue[Light]);
for(j=0;j<SAMPLEINTERVAL && i!=NUMSAMPLES;j++) {
wait10Msec(6000); // ONE MINUTE


}
}
Close(LIGHTFt);
}





can you help?

Author:  vnguyen [ Thu Oct 20, 2011 9:09 am ]
Post subject:  Re: Opcode is not supported by my processor

What robotics platform are you using?

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/