View unanswered posts | View active topics It is currently Wed Oct 22, 2014 4:08 am






Reply to topic  [ 4 posts ] 
call program during task 
Author Message
Rookie

Joined: Thu May 17, 2012 3:35 pm
Posts: 35
Post call program during task
Hello

is it possible to start program "B", which is stored on the NXT, during the program "A" runs?

Example:

Vehicle is driving : stored as run.c --- the touchsensor is pressed an run.c stops and program xy.c starts

like in NXC: direct command = StartProgram ?

Thanks


Fri Dec 21, 2012 2:34 pm
Profile
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post Re: call program during task
Interesting Question...
:? I will research the Answer.
Hang in there...
:idea:
So Far only in Arduino...
hang on.
Yeah, sorry buddy, but according to what I've found tells me that you can only on Arduino (RobotC). Let me know id=f anyone proves me wrong.

_________________
string Robored = "Awesome"
~~Neil Balch~~


Sat Dec 29, 2012 10:58 pm
Profile WWW
Novice
User avatar

Joined: Sat Jul 10, 2010 3:06 pm
Posts: 86
Location: Roanoke, VA
Post Re: call program during task
I do not know whether or not this is possible... (From above post, it appears to be impossible).

However, I thought I'd mention that a possible work-around is to use tasks. For example, store a RunRobot task in the Run.c file, and a Main task in the Main.c file.

Now, #include Run.c in the Main.c program. You can now call StartTask(RunRobot), which will execute the code from RunRobot.

_________________
Check out my website! www.RoboDesigners.com

VRC Team 2190

Twitter: @RoboDesigners


Sat Dec 29, 2012 11:46 pm
Profile WWW
Rookie

Joined: Thu May 17, 2012 3:35 pm
Posts: 35
Post Re: call program during task
Thanks. Good idea


Tue Jan 08, 2013 5:30 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.