hiamchuan 发表于 2009-4-11 09:34:57

graph控件曲线数据保存问题

在graph上画的曲线,我想导出曲线的数据,并保存在txt中,请问该怎么做??

cpubbs 发表于 2009-4-11 18:20:29

送入graph前应该就是一个数组,您可以直接保存这个数组!

cpubbs 发表于 2009-4-11 18:20:50

格式化写入和读取数据文件
http://www.cpubbs.com/bbs/viewthread.php?tid=59115&fromuid=19

cpubbs 发表于 2009-4-11 18:21:02

这里是咱们版主提供的一个例子,兄弟瞧瞧!

hiamchuan 发表于 2009-4-11 22:03:29

我想从曲线读出数据然后保存,你说的方法我已经做过了,而且成功了 2# cpubbs

cpubbs 发表于 2009-4-11 22:22:17

哦,原来是要直接读取出来的意思!

用这个试试:

Obtains the value of a graph plot attribute.

file:///c:/program%20files/national%20instruments/cvi85/bin/libref/dot.gif Prototype file:///c:/program%20files/national%20instruments/cvi85/bin/libref/dot.gif
int GetPlotAttribute (int Panel_Handle, int Control_ID, int Plot_Handle, int Plot_Attribute, void *Attribute_Value);

okif 发表于 2009-5-9 14:31:26

谢谢!

hubeiyk 发表于 2009-5-11 11:07:42

有一个函数可以从曲线上直接读取到数据的

whenqi 发表于 2010-5-15 18:41:29

回复 6# cpubbs

问个很不专业的题,GetPlotAttribute还是不知道怎么用。通过一个函数产生的波形,假设横坐标是0到100,怎么从Graph控件上的波形读出纵坐标的值?

laibu2006 发表于 2010-9-7 11:59:04

卖仪器网:http://www.mai17.com/
莱步仪器网:http://www.mai17.net/
仪器信息网:http://www.17info.org/
采购仪器网:http://www.caigou17.com/
看南京:http://www.kannanjing.com.cn/
食者:http://www.cnkongbu.com/
莱步淘淘网:http://www.laibu.org/
大肚网:http://www.dado.org.cn/

forestoo 发表于 2010-7-28 13:54:59

帮顶!

forestoo 发表于 2010-7-28 13:55:02

帮顶!

forestoo 发表于 2010-7-28 13:55:05

帮顶!

forestoo 发表于 2010-7-28 13:55:10

帮顶!

forestoo 发表于 2010-7-28 13:55:14

帮顶!
页: [1] 2
查看完整版本: graph控件曲线数据保存问题