Go to Post And who is to say what is the mean? Do I mean the mean? Or even the average? Or am I just being mean (or average, which could be my mean)? - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2006, 17:52
lasindi lasindi is offline
Registered User
FRC #1164 (Project Neo)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: New Mexico
Posts: 11
lasindi is an unknown quantity at this point
Purpose of the _SIMULATOR macro?

What is the purpose of the _SIMULATOR macro in this segment of code from main() in the default code? From what I can tell, all it does is prevent anything from happening inside the while loop, which would be rather useless. So, why is it there?
  #2   Spotlight this post!  
Unread 14-01-2006, 19:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Purpose of the _SIMULATOR macro?

MPLAB has a simulator built in that allows you to run or step through your code as it executes without the RC. The _SIMULATOR tells the compiler to skip over portions of the code that would normally be supplied by the RC but impede the simulation. Specifically, the section of code that waits for radio packets to arrive.

Try a search on _SIMULATOR to find other discussions about MPLABs simulator.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bumpers for a game purpose? Andrew Blair Rules/Strategy 6 10-01-2006 13:08
QotW 10-19-03: Purpose lost. Madison Rumor Mill 4 22-10-2003 13:32
Losing focus on the purpose of FIRST.. someone bring me back archiver 2000 6 23-06-2002 22:56
The Purpose of FIRST archiver 2000 9 23-06-2002 22:29
Did Team 505 do it on purpose Elgin Clock Regional Competitions 4 31-03-2002 10:13


All times are GMT -5. The time now is 04:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi