|
Page 1 of 1
|
[ 2 posts ] |
|
Opcode is not supported by my processor
| Author |
Message |
|
panda
Rookie
Joined: Thu Oct 20, 2011 8:55 am Posts: 1
|
 Opcode is not supported by my processor
 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?
|
| Thu Oct 20, 2011 9:00 am |
|
 |
|
vnguyen
Site Admin
Joined: Wed Jan 24, 2007 10:44 am Posts: 421 Location: Pittsburgh, PA
|
 Re: Opcode is not supported by my processor
What robotics platform are you using?
_________________Vu Nguyen Software Training Development Team | WebmasterNeed more support? Use the ROBOTC Ticketing systemRobotc.net| Robomatter Store | Robotics Academy
|
| Thu Oct 20, 2011 9:09 am |
|
|
|
Page 1 of 1
|
[ 2 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|