ytxz007 发表于 2008-10-18 11:32

求助关于Turetime1.5工具箱

安装工具想的时候要求add the following lines to your Matlab startup script. This will set up all
necessary paths to the TRUETIME kernel files.
addpath()
init_truetime;
就是在matlab起动脚本文件增加两句话,请问这个启动脚本文件在哪里啊?找了半天找。
不到百度上说在$matlab\toolbox\sloptim\sloptdemos\html\startup.m 可是我找了没有哇,请大虾们指点一下

科技在线 发表于 2008-10-18 21:18

truetime-1.3
............\docs
............\....\manual.pdf
............\examples
............\........\distributed
............\........\...........\c++
............\........\...........\...\actuator_init.cpp
............\........\...........\...\controller_init.cpp
............\........\...........\...\distributed.mdl
............\........\...........\...\interference_init.cpp
............\........\...........\...\make.m
............\........\...........\...\sensor_init.cpp
............\........\...........\matlab
............\........\...........\......\actuator_init.m
............\........\...........\......\controller_init.m
............\........\...........\......\ctrlcode.m
............\........\...........\......\distributed.mdl
............\........\...........\......\interfcode.m
............\........\...........\......\interference_init.m
............\........\...........\......\senscode.m
............\........\...........\......\sensor_init.m
............\........\...........\README
............\........\motes
............\........\.....\code.m
............\........\.....\init.m
............\........\.....\moteanimation.m
............\........\.....\motes.mdl
............\........\.....\node_init.m
............\........\.....\README
............\........\overrun
............\........\.......\hdlcode.m
............\........\.......\overrun.mdl
............\........\.......\overrun_init.m
............\........\.......\pidcalc.m
............\........\.......\pidcode.m
............\........\.......\README
............\........\simple_pid
............\........\..........\c++
............\........\..........\...\controller.mdl
............\........\..........\...\servo.mdl
............\........\..........\...\servo_init.cpp
............\........\..........\matlab
............\........\..........\......\blockcode.m
............\........\..........\......\controller.mdl
............\........\..........\......\pidcalc.m
............\........\..........\......\pidcode1.m
............\........\..........\......\pidcode2.m
............\........\..........\......\pidcode3.m
............\........\..........\......\samplercode.m
............\........\..........\......\servo.mdl
............\........\..........\......\servo_init.m
............\........\..........\README
............\........\synch
............\........\.....\calculateOutput.m
............\........\.....\innercode.m
............\........\.....\newpid.m
............\........\.....\outercode.m
............\........\.....\README
............\........\.....\synch.mdl
............\........\.....\synch_init.m
............\........\threeservos
............\........\...........\c++
............\........\...........\...\threeservos.mdl
............\........\...........\...\threeservos_init.cpp
............\........\...........\matlab
............\........\...........\......\pidcalc.m
............\........\...........\......\pidcode.m
............\........\...........\......\threeservos.mdl
............\........\...........\......\threeservos_init.m
............\........\...........\README
............\........\wireless


把这个写进m文件,然后加载试试

ytxz007 发表于 2008-11-18 21:08

回复 沙发 科技在线 的帖子

谢谢,工具箱已经可以用了。还想问一个问题,truetime工具箱里面那个ttSetNetworkParameter()函数怎么用?就是用来设置网络延时的命令。比如说在里面自带的 ttsendmsg 例子里怎么写m文件呢?
我写了一个
functionttsetnetworkparameter
ttSetNetworkParameter(1,postdelay,1)
end
运行后说没有定义postdelay
麻烦你了
感激不尽

kingjin08 发表于 2009-1-7 11:05

求助关于Turetime1.5工具箱

在安装truetime工具箱时,运行make_truetime出现了
make_truetime
Compiling TrueTime kernel block...
Error: Could not detect a compiler on local system
which can compile the specified input file(s) at D:\Program Files\MATLAB704/bin/win32/mexsetup.pm line 519.
Compilation using MEX failed! (Run 'mex -setup' to configure your compiler)

麻烦各位指教

ch_j1985 发表于 2009-1-7 19:33

回复 地板 kingjin08 的帖子

看看这个网页
http://user.qzone.qq.com/809104518/blog/1195915866

kingjin08 发表于 2009-1-12 10:49

回复 唠嗑 ch_j1985的帖子

多谢,现在工具箱已能用了。

ch_j1985 发表于 2009-1-12 23:25

回复 6楼 kingjin08 的帖子

请问是怎么解决的,分享下?

kingjin08 发表于 2009-1-13 13:08

回复 唠嗑 ch_j1985的帖子

之前没有运行mex setup,运行后再运行make_truetime。

lldx2009 发表于 2009-3-27 10:28

关于Truetime安装的问题

第一,PDF上说,可以在网站上下载预编译文件,可是我在上面找不到。
   第二就是,如果没有下载预编译文件,自己要编译的话,是不是一定要安装有VC++7.0的才能编译?
   第三就是那个环境变量设置了之后,如何找到启动脚本,添加语句?

xbgcc 发表于 2013-1-7 15:19

matlab\toolbox\local\startupsav.m,将这两句话填在里边并另存为startup.m就可以了
页: [1]
查看完整版本: 求助关于Turetime1.5工具箱