帮我看下这段代码 点击:417 | 回复:2



给我一份11

    
  • 精华:0帖
  • 求助:0帖
  • 帖子:19帖 | 6回
  • 年度积分:0
  • 历史总积分:46
  • 注册:2007年5月30日
发表于:2008-01-20 13:08:00
楼主

while(tempInt<=5)
{
tempX=ReportGetCellValue("流量与压力报表", tempInt, 1);
tempY=ReportGetCellValue("流量与压力报表", tempInt, 2);
xyAddNewPoint( "流量与压力曲线图", tempX, tempY, 1 );
tempInt=tempInt+1;
}


想将采集到的流量、压力 绘制成曲线在"流量与压力曲线图"中显示,怎每次让“流量与压力曲线图”画面出现时就死机了,怎回事呀?(tempInt为在数据词典定义的内存整形,初始值为3)



海浪工控工作室

  • 精华:0帖
  • 求助:0帖
  • 帖子:24帖 | 344回
  • 年度积分:0
  • 历史总积分:627
  • 注册:2003年4月09日
发表于:2008-01-20 13:20:00
1楼
死循环

deng_lp

  • 精华:5帖
  • 求助:0帖
  • 帖子:65帖 | 2669回
  • 年度积分:0
  • 历史总积分:2876
  • 注册:2001年6月19日
发表于:2008-01-21 00:56:00
2楼
while(tempInt<=5)
{
tempX=ReportGetCellValue("流量与压力报表", tempInt, 1);
tempY=ReportGetCellValue("流量与压力报表", tempInt, 2);
xyAddNewPoint( "流量与压力曲线图", tempX, tempY, 1 );
tempInt=tempInt+1;
}
最好能加下 如初始值,超范围的判断

热门招聘
相关主题

官方公众号

智造工程师