david1st271 发表于 2005-7-15 01:48:19

[求助]存储文件

<P><img src="attachments/dvbbs/2005-7/2005714174425792.bmp" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2005-7/2005714174425792.bmp\');}" onmousewheel="return imgzoom(this);" alt="" /></P>
<P>正在做定时自动存储,用这个模块儿存储文件时,不能建立深层目录,如果建立深层目录怎样实现呢? 例如只能设路径为C:\2005.TXT, 若设为C:\2000\2005.TXT则不能正常存储。
</P>

cpubbs 发表于 2005-7-15 02:13:21

应该是可以的,你试试加一个build path,把前面的路径和这个联起来然后再输到这个路径上面看看行不行!路径应该是可以随便改的呢!

cpubbs 发表于 2005-7-15 02:16:41

我刚才试了一下,就按照你的这个建立文件的节点,就能直接建立文件的呀!不过不知道你的PDA方面是不是和PC上面的相同的!

david1st271 发表于 2005-7-15 02:20:58

就是PC上啊,为什么我的不行?郁闷中, 你说的用BUILD PATH 方法也用过了,不行。 作了一下午了,待会儿,把程序放上去,帮忙看一下。现在吃饭先

cpubbs 发表于 2005-7-17 02:41:30

那个循环里面的write file.vi它有一个输入端口是pos mode,你要选择为end,这时候所有的数据都是直接写到最后的!

david1st271 发表于 2005-7-17 02:56:15

哦,谢谢老大指点。

cpubbs 发表于 2005-7-17 02:58:15

8客气,有空常来咱们的CPUBBS论坛玩就好了,哈哈,也多介绍朋友们过来哈,thank you very much!

cpubbs 发表于 2005-7-15 02:23:33

刚才我做了一个写的程序,也可以写的呀!

cpubbs 发表于 2005-7-15 02:23:55

或者你找找我们这里有一个写波形的文件,你可以看看!我找找!

cpubbs 发表于 2005-7-15 02:24:44

http://www.cpubbs.com/old_bbs/dispbbs.asp?boardID=4&amp;ID=13&amp;page=19

cpubbs 发表于 2005-7-15 02:26:32

哦,刚才这个文件是直接TXT写的文件,不是建立文件的!

david1st271 发表于 2005-7-15 03:03:43

<img src="attachments/dvbbs/2005-7/200571419211361.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\nCTRL+Mouse wheel to zoom in/out\';}" onclick="if(!this.resized) {return true;} else {window.open(\'attachments/dvbbs/2005-7/200571419211361.jpg\');}" onmousewheel="return imgzoom(this);" alt="" />

流程和源程,很简单

cpubbs 发表于 2005-7-15 03:20:13

在WINDOWS中,不能用冒号来做文件名吧?时间用冒号的,你得改另外一种方式才行的,你将这个时间这个地方改改就好了,我试了一下行的啦!将时间变换一下显示的形式,比如写成X时X秒之类的就可以了,不要用冒号显示!

david1st271 发表于 2005-7-15 04:18:06

<P>
定时存储改进版,还存在错误(在New Directory 部分),但功能基本实现。</P>
<P>朋友们,有更好的方法,一定要贴出来呀。(请存为7.0版,7.1版我打不开)</P>
页: [1]
查看完整版本: [求助]存储文件