Dear Mayank, Thanks for the solution.It worked. But I have not worked with python at all. However your solution gave me a good view.
Best regards On Wed, Oct 28, 2009 at 12:00 AM, Mayank Kothiya <[email protected]>wrote: > I will show you steps for how to simulate any application in tinyos. I am > doing it here for Blink application. > Create a *test.py* in your Blink application directory and add following > code: > #! /usr/bin/python > from TOSSIM import * > t = Tossim([]) > m=t.getNode(1); > m.bootAtTime(1024); > import sys > t.addChannel("Boot",sys.stdout); > t.addChannel("BlinkC",sys.stdout); > > for i in range (0,100): > t.runNextEvent() > > save file. > then go to directory from terminal(shell). > write following:\ > chmod +x test.py > ./test.py > > Ask me anything if you didn't get it? > > > ------------------------------ > *From:* mojtaba raznahan <[email protected]> > *To:* Mayank Kothiya <[email protected]>; > [email protected] > *Sent:* Tue, 27 October, 2009 9:45:11 PM > *Subject:* Re: [Tinyos-help] Can't run Main.exe ,Tossim > > Any solution?? > I really need your help > > On Sun, Oct 25, 2009 at 12:23 PM, mojtaba raznahan < > [email protected]> wrote: > >> Hi Mayank, >> Thank you,I did'nt know that. >> I've saw the link but i cant use it with C++. >> The code that presented in this link does'nt work for me. >> would you give me a clear solution? >> thank you >> >> On Sat, Oct 24, 2009 at 10:16 PM, Mayank Kothiya < >> [email protected]> wrote: >> >>> You will not be able to simulate it using main.exe. >>> Instead try following link tutorial to understand how to simulate >>> application in tossim: >>> http://docs.tinyos.net/index.php/TOSSIM >>> main.exe is used while downloading your code from pc to mote. >>> >>> ------------------------------ >>> *From:* mojtaba raznahan <[email protected]> >>> *To:* [email protected] >>> *Sent:* Sat, 24 October, 2009 7:23:49 PM >>> >>> *Subject:* [Tinyos-help] Can't run Main.exe ,Tossim >>> >>> Hi, >>> I'm new in WSN and now I'm trying to run a simple application but i can >>> stil do this.I installed tinyos-2.x according to the TinyOs.net . >>> I compiled Blink application ,it compiled successfully but i cant run the >>> main.exe.I used "Make micaz pc" and it created "build" directory.also I've >>> used "Make micaz sim" for simulation.I'm really mixed up about running.When >>> i click on main.exe ,just a black screen shows up but it doesn't show any >>> thing! I used cygwin in windows vista.and also i tried installing tinyos in >>> linux (ubunto 9.04) but by typing "make micaz pc" it create main.exe file >>> that linux cant run it.Why in linux it create a ".exe" file ? >>> Whould you help me plz ? >>> >>> Regards >>> >>> -- >>> Mojtaba Raznahan >>> BS of Computer engineering >>> TMU university >>> www.raznahan.com >>> >>> ------------------------------ >>> Connect more, do more and share more with Yahoo! India Mail. Learn >>> more<http://in.rd.yahoo.com/tagline_galaxy_3/*http://in.overview.mail.yahoo.com/> >>> . >>> >> >> >> >> -- >> Mojtaba Raznahan >> BS of Computer engineering >> TMU university >> www.raznahan.com >> > > > > -- > Mojtaba Raznahan > BS of Computer engineering > TMU university > www.raznahan.com > > ------------------------------ > Try the new Yahoo! India Homepage. Click > here<http://in.rd.yahoo.com/tagline_metro_1/*http://in.yahoo.com/trynew> > . > -- Mojtaba Raznahan BS of Computer engineering TMU university www.raznahan.com -- Mojtaba Raznahan BS of Computer engineering TMU university www.raznahan.com
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
