cpubbs论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

LabVIEW+单片机学习套件全套教程资料下载[免费]LabVIEW论坛精华列表贴USB0816数据采集卡《LabVIEW宝典》
LabWindows/CVI论坛精华贴NET0816以太网数据采集卡RC0210远程设备授权系统 关闭关停锁定打开设备 户外分布式数据采集
NET1624低速高精度以太网数据采集卡WIFI0824SD无线WIFI网络数据采集卡脱机运行 SD存储 小尺寸微型 串口采集远程采集 安卓 手持移动采集 纪录仪
查看: 1720|回复: 2

请教,在线等,如何将图形控件Y坐标的范围设置成自动缩放

[复制链接]
发表于 2006-12-27 19:33:00 | 显示全部楼层 |阅读模式
我在Graph控件属性上已经设置了是自动缩放的,但是图形控件还是按照原来的上下范围进行显示的,请问用什么命令进行修改

急!!!!!!!!!!!1

谢谢各位大哥了
发表于 2006-12-28 08:34:36 | 显示全部楼层
今天帮您找了一下,看到一个,您试试行不行:

int SetAxisScalingMode (int Panel_Handle, int Control_ID, int Axis, int Axis_Scaling, double Min, double Max);
发表于 2006-12-28 08:34:42 | 显示全部楼层
Sets the scaling mode and the range of a graph axis or the range of the y-axis of a strip chart.

This function is not valid for the x-axis of a strip chart. To set the x offset and x increment for a strip chart, use the SetCtrlAttribute function with the ATTR_XAXIS_OFFSET and ATTR_XAXIS_GAIN attributes.

If you use this function to change the y-axis of a strip chart, the chart is cleared and all existing data is discarded.

When calling this function on a digital graph, the min and max values will be rounded to the closest integer value.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|cpubbs论坛. ( 粤ICP备09171248号 )

GMT+8, 2025-5-5 07:04 , Processed in 0.330582 second(s), 8 queries , Gzip On, File On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表