07-20-2009 11:57 PM
I have followed the x-y example in the example finder and think i've done everything correctly but all i get when i run my RT vi is a vertical line jumping up and down as the x and y values change. I would like to have a decent x-y plot like the example shows. Attached is the portion of the code i wrote. The portion resides in a while loop. Also, the data wired to the bundle have been manipulated (i.e. i applied a formula to the raw signals i get from my encoder and pressure sensor (so i'm trying to get actual pressure vs crank angle). Can someone let me know what the possible issues could be? Thanks.
Solved! Go to Solution.
07-21-2009 12:06 AM
here is a small example of a xy-graph hope it helps:
07-21-2009 12:18 AM
try putting you biuld array in pront of the bundle cluster.
07-21-2009 12:19 AM
07-21-2009 12:55 AM
07-21-2009 01:04 AM
07-21-2009 01:14 AM
it would be nice to see your code only to try and fix it from this small bit you have givin us I can see a ton of confusing wires so if you could tomorrow or somthing post your code so ppl can go through it, and trust me most the ppl on this forum are here to help.
have a good one,
07-21-2009 02:28 AM
Hi jaydee1,
what you are doing now is building a "single X-Y point" plot and overwriting the graph for every iteration of the loop. All previous values are lost. Not really nice to see.
Harold already put you on the right way with his second post: build the arrays maintaining all previous data. However, probably in the hurry of writing the example, he overlooked some details, so in my opinion a couple of corrections are needed:
1) the Y array (below) is built backwards with respect to the X array and this is not good
2) it's by far better (although not necessary in some cases) to initialize the shift registers with empty arrays in order to clear them every time the loop is run
Hope this helps
07-21-2009 02:32 AM
07-21-2009 06:33 AM