View unanswered posts | View active topics It is currently Sat Apr 19, 2014 8:58 am






Reply to topic  [ 2 posts ] 
Opcode is not supported by my processor 
Author Message
Rookie

Joined: Thu Oct 20, 2011 8:55 am
Posts: 1
Post 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?


Thu Oct 20, 2011 9:00 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:44 am
Posts: 438
Location: Pittsburgh, PA
Post Re: Opcode is not supported by my processor
What robotics platform are you using?

_________________
Vu Nguyen
Software Training Development Team | Webmaster
Need more support? Use the ROBOTC Ticketing system

Robotc.net| Robomatter Store | Robotics Academy | CS2N


Thu Oct 20, 2011 9:09 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.