如果你想在StripChart同时画出如下两条线a = [0,1,2,3,4,5,6 ..... 50]
b = [0,2,4,6,8 .......... 100]
只需两步:
1.
for (i =0; i < 51; i++)
{
int a,b;
int c[2] = {0};
a = i;
b = i*2;
c[0] = a;
c[1] = b;
PlotStripChart (MainPanelHandle, MainPanel_STRIPCHART, c, 2, 0, 0, VAL_INTEGER);
}
2.
在CVI的面板上双击你的StripChart,按下图操作
是不是so easy!
http://www.howtocvi.net/2011/06/how-to-plot-multuple-traces-on.html#comment-form