- 积分
- 84
- 注册时间
- 2002-8-29
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2002-9-23 11:38:04
|
显示全部楼层
来自 上海
回复: 用call library function node怎样传递structure类型参数
但在Labview提供的数据类型中(number,string,array,waveform,[B]adapt to type[/B]),只有number 可以返回X坐标
呵呵,就是用adapt to type。
再labview里创建一个cluster,一次放入x,y,都是i32类型。x,y的次序不要搞错啊,必要时点右键用reorder control in cluster。再将call library node的参数类型选为adapt to type, format为Handle by value。在diagram里将cluster与参数入口连起来。这样送进去的就是cluster的pointer了。
欲了解更多labview的数据存储格式,请到ni.com当一本叫G programing language reference manual的pdf file.
连接:
http://digital.ni.com/manuals.nsf/websearch/8603C072BB0FAAE98625665E006358A6?OpenDocument&node=132100_US
直接下载:
http://www.ni.com/pdf/manuals/321296b.pdf |
评分
-
1
查看全部评分
-
|