是德科技
直播中

李玉林

8年用户 218经验值
私信 关注
[问答]

如何从输出缓冲区获取字符串到excel文件

我已经设置了一个VI,它使用53220A对频率进行一段时间的采样并计算统计数据(Avg,Max,Min,STDev)。
我已经成功地将结果输出到我的Vi的前面板,但是我在将结果写入文件时遇到了麻烦。
有什么建议我如何从输出缓冲区获取字符串到excel文件(数组)?
我附加了我的vi,生成的文件包含无意义的数据。编辑:funkytuqe于2012年6月27日下午2:37

以上来自于谷歌翻译


     以下为原文

  I have set up a VI that samples frequency with a 53220A for a period of time and computes stats (Avg, Max , Min, STDev).   I have been successful in outputting the results to the front panel of my Vi, but i am having troubles writing results to file.   Any advice how i can get the string from the output buffer to an excel file (array)?    I have attached my vi, the resulting file contains un-meaningful data.

Edited by: funkytuqe on Jun 27, 2012 2:37 PM   
附件

回帖(1)

李玉林

2019-3-26 15:38:45
好吧,我明白了。
我使用上面发布的VI并使用build array函数修改插入excel文件。
通过写入然后读取文本文件创建标题(无法弄清楚如何直接执行此操作以获得excel)。
我对整个LabView的事情还比较陌生,但是这个VI似乎产生了我想要的结果,这可能是漫长的过程,并且可能有更直接的方法。
如果您愿意,请继续使用它,计数器功能是在安捷伦连接专家中构建的,然后将SCPI输出到LV中的VISA中。

以上来自于谷歌翻译


     以下为原文

  OK, i got it figured.  I Used the above posted VI and modified with build array functions to plug into an excel file.   Created a header by writing then reading to a text file (could not figure out how to do this directly to excel).   I am fairly new to this whole LabView thing but this VI seems to produce the results that i want, this may be the long way around and there may be a more direct approach.  Go ahead an use it if you like, the counter functions were built in Agilent connection expert, then exported the SCPI out into VISA in LV.

附件

举报

更多回帖

发帖
×
20
完善资料,
赚取积分