LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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.  

Download All
0 Kudos
Message 1 of 19
(2,621 Views)

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 Kudos
Message 2 of 19
(2,617 Views)

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.

Download All
0 Kudos
Message 3 of 19
(2,609 Views)

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 Kudos
Message 4 of 19
(2,607 Views)

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 Kudos
Message 5 of 19
(2,604 Views)

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 Kudos
Message 6 of 19
(2,602 Views)

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

Thanks.

0 Kudos
Message 7 of 19
(2,592 Views)

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 Kudos
Message 8 of 19
(2,588 Views)

But why is there a need to use shift registers?

0 Kudos
Message 9 of 19
(2,578 Views)

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 Kudos
Message 10 of 19
(2,573 Views)