I add "import ns"
it works
Thanks.
On Mar 29, 3:46 am, Gokul Bhat <
bhatgo...@gmail.com> wrote:
> The reason why what I suggested did not work is because you had not
> imported the ns3 module in the script.
>
> Since, you have import ns.core, ns.network and so on in your script, you
> will have to use the wifi module in order to use the enum definition.
>
> So, you should use wifi.SetStandard(ns.wifi.WIFI_PHY_STANDARD_80211b)
>
> Instead of adding each of the modules individually, you could use import
> ns3 and it adds all the modules in ns3 to your script.
>
> 2012/3/28 jiecong wang <
wangjiecong1...@gmail.com>
>
>
>
>
>
>
>
>
>
> > At the 25 line. you can try it
> > 在 2012年3月29日 上午3:30,Gokul Bhat <
bhatgo...@gmail.com>写道:
>
> > The command wifi.SetStandard(ns3.WIFI_PHY_STANDARD_80211b) should work
> >> because it is a typedef enum, i.e. the names of the standard should work.
>
> >> On Wed, Mar 28, 2012 at 3:28 PM, Gokul Bhat <
bhatgo...@gmail.com> wrote:
>
> >>> Send me your code. It works on my system.
>
> >>> On Wed, Mar 28, 2012 at 3:25 PM, JIECONG WANG <
wangjiecong1...@gmail.com