取消
显示结果 
搜索替代 
您的意思是: 

Problem in plotting graph

Hi,

I am trying to plot a graph. I want to refrence my initial position so that if there is change in values it will be elongation. So I want my graph to start plotting after initial refrence position is marked. Right now what is happening is it take iniatial reading as zero and distance between two sensors is like 7.5meters so it draws a line at 7.5 meter and then come to elongation after initial reference is clicked. Since change is going to be 10-20 mm it does not show the curve. So what can i do to make graph start after i click initial reference position and ignore previous values.

 

Thank You

0 项奖励
1 条消息(共 4 条)
2,677 次查看

It sounds like you just need to remove an initial offset from your graph.  To do this, pull the first value from the array you are graphing, and subtract that from all your other data points. Let us know if this is not a satisfactory solution.

 

Ryan

Applications Engineer
National Instruments
2 条消息(共 4 条)
2,656 次查看

It seams the trouble you are having is that te initial value for Distance in mm is 0.  Set it to NaN.  Nan's Don't plot. 


"Should be" isn't "Is" -Jay
3 条消息(共 4 条)
2,653 次查看

Thanks Ryan and Jeff, It worked

0 项奖励
4 条消息(共 4 条)
2,634 次查看