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

array to graph

Hi, in my VI, I already have one XY Graph to display some results but I retrieve all the Y values from it so as to make changes to one of them and now I am going to feed this batch of new y values back into a new XY Graph and plot a new curve. But now the problem seems to be that the 2 curves that I have are not similar when they should be similar except for the point that I changed the value. So can anyone please tell me what must I do to achieve what I want.

Thanks.  

0 项奖励
1 条消息(共 19 条)
3,894 次查看

Hi Fred,

 

"what must I do to achieve what I want."

Well, I would suggest to get rid of that nasty ExpressVIs and do some programming of your own...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
2 条消息(共 19 条)
3,890 次查看

From the data I got from my first XY Graph, would it be possible to ask the computer to check if which points are out of range from the curve? Retrieve these points add or subtract 180 to or from them and add them back into the original data and form another new curve.

0 项奖励
3 条消息(共 19 条)
3,882 次查看

Hi fred,

 

ever heard of the InRange function before?

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
4 条消息(共 19 条)
3,880 次查看

Can u add the snippet to the previous VI u attached or store it in a new VI for me to take a look at it? Because I can't drag and drop snippet. Remeber? Thanks.

0 项奖励
5 条消息(共 19 条)
3,877 次查看

Hi fred,

 

have you tried to drag the snippet to the desktop and from there into the block diagram - as stated in the thread I linked before? Remember?

Well, you could also redraw that little snippet, it's just a FOR loop, a case structure, the InRange and a ADD node. (You may call this procedure "learning by doing"...)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
6 条消息(共 19 条)
3,875 次查看

Hi, I do not really understand why you program your Parse Graylevel VI this way, would you mind explaining? 

Thanks.

0 项奖励
7 条消息(共 19 条)
3,865 次查看

Hi fred,

 

it's still your "ParseGraylevel.vi"...

I only changed the part on setting up the graphs as the problem was with those ExpressVIs you used before. Now the VI uses simple BuildArray and Bundle nodes to build the plots - as is explained in the context help of the graph...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
8 条消息(共 19 条)
3,861 次查看

But why is there a need to use shift registers?

0 项奖励
9 条消息(共 19 条)
3,851 次查看

Hi fred,

 

shift registers are used to keep data from previous iterations. And that's what you need when setting up a plot. (In your approach they were hidden in the ExpressVI together with some other fancy stuff...)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
10 条消息(共 19 条)
3,846 次查看