1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨Vee用户,我有一个Vee测试,我从.csv文件中读取了许多参数,执行测试循环,并在每个循环结束时将结果存储在another.csv文件中。
除了测量结果,我保存了一些导入的参数,其中一个是文本条目数组。 所有其他值都转到结果文件,但这些文本条目导致问题。 我在公式框中创建.csv行条目,如下所示:InputPin1 +“,”+ InputPin2 +“,”+ ...等。 其中一些输入引脚的值是从具有另一个公式框的数组中获得的,如下所示:Array [index]。 只要写入.csv文件的项目来自测量循环或从第一个.csv文件创建的数字(非文本)数组,这一切都可以正常工作。 我在我的csv文件中打开结果(在Excel中打开),如下所示:NumberFromArray MeasurementResult CounterNumber NumberFromArray NumberFromArray MeasurementResult CounterNumber NumberFromArray NumberFromArray MeasurementResult CounterNumber NumberFromArray etc ...但是当我从文本数组中读取时,我写的.csv文件有错误开始 在第二行上,如下所示:NumberFromArray MeasurementResult CounterNumber TextFromArray NumberFromArray MeasurementResult CounterNumber TextFromArray NumberFromArray MeasurementResult CounterNumber TextFromArray NumberFromArray MeasurementResult CounterNumber TextFromArray .......就像一个行尾以某种方式找到它的方式。 如果我用文本常量,数字或NumberArray [index]替换TextArray [index]输入,一切正常。 我已经尝试了我在测量例程中所能想到的一切以及导入.csv并创建数组的UserFunction,但我无法让它工作。 我也无法理解为什么问题从第二行开始。 对此有任何建议将不胜感激。 谢谢,唐 以上来自于谷歌翻译 以下为原文 Hi Vee users, I have a Vee test where I read a number of parameters from a .csv file, perform a test loop, and store the results in another.csv file at the end of each loop. Along with the measurement results, I save some of the imported parameters, one of which is an array of text entries. All other values go to the results file fine but these text entries are causing a problem. I am creating the .csv line entry in a formula box like this: InputPin1+","+InputPin2+","+...etc. The values on some of these input pins are obtained from arrays with another formula box like this: Array[index]. This all works well as long as the items written to the .csv file come from the measurement loop or number (not text) arrays created from the first .csv file. I get results in my csv file (opened in Excel) like this: NumberFromArray MeasurementResult CounterNumber NumberFromArray NumberFromArray MeasurementResult CounterNumber NumberFromArray NumberFromArray MeasurementResult CounterNumber NumberFromArray etc... But as soon as I read from the text array the .csv file I write has errors beginning on the second line like this: NumberFromArray MeasurementResult CounterNumber TextFromArray NumberFromArray MeasurementResult CounterNumber TextFromArray NumberFromArray MeasurementResult CounterNumber TextFromArray NumberFromArray MeasurementResult CounterNumber TextFromArray ....... It's as if an end of line is finding it's way in somehow. If I replace the TextArray[index] input with a text constant, a number, or a NumberArray[index] everything works fine. I have tried everything I can think of in my measurement routine and the UserFunction that imports the .csv and creates the arrays, but I just can't get it working. I also can't understand why the problem begins on the second line. Any suggestions on this would be greatly appreciated. Thanks, Don |
|
相关推荐
2个回答
|
|
|
|
|
|
字符串中有一个额外的控件CHAR。 CR我想。 但调试我们需要用样本数据发布vee程序。 不是屏幕拍摄 以上来自于谷歌翻译 以下为原文 You have an extra control CHAR in the string. CR i guess. But the debug it we need to post vee program with sample data. Not a screen shoot |
|
|
|
只有小组成员才能发言,加入小组>>
1285 浏览 0 评论
2373 浏览 1 评论
2192 浏览 1 评论
2064 浏览 5 评论
2948 浏览 3 评论
1108浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
752浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
924浏览 0评论
1287浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 13:00 , Processed in 2.071844 second(s), Total 80, Slave 64 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号