是德科技
直播中

张凤英

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

怎么使用Excel数据填充变量

嗨,我正在尝试使用excel表作为“配置表”,其中包含我在VEE中运行的程序的配置数据。
我已经让VEE程序打开相应的excel表并以2D数组的形式读取数据。
获取这些数据并使用单个数据填充许多不同“设置变量”的最简单方法是什么?
(约20个不同的值,即:最小时间最大时间最小温度最大温度最小电压最大电压最小电流......等等)提前感谢您的帮助!

以上来自于谷歌翻译


     以下为原文

  Hi,
I'm trying to use an excel sheet as a "configuration sheet" that has configuration data for the program I'm running in VEE.

I already have the VEE program opening the appropriate excel sheet and reading the data in as a 2D array.   

What is the easiest way to take this array of data and populate many different "set variables" with individual data?

(about 20 different values i.e.:
min time
max time
min temp
max temp
min voltage
max voltage
min current
... etc.)

Thanks in advance for your help!  

回帖(1)

汤宇

2018-11-20 10:39:46
嗨dbvee!
我今天试图做同样的事情,想出了这个。
我不知道如果它不断地将数据从数据库中拉出来它会执行得多快但是它确实更容易让它找到一个测试值的名称而不是试图将它指向一个可能改变的单元格位置
未来。
无需跟踪数据的位置!
所以看看,它可能对某些人来说太基本但似乎有效。
问候,库尔特

以上来自于谷歌翻译


     以下为原文

  Hi dbvee!
I was trying to do the very same thing today and came up with this. I dont know how fast it will execute if it is constantly pulling data out of the database but it sure is a lot easier to have it look for a name of a test value instead of trying to pinpoint it to a cell location that may change in the future. No need to keep track of where that data is located! So take a look, it may be too basic for some but it seems to work.
Regards,
Kurt

附件

举报

更多回帖

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