11-29-2007 02:43 PM
11-29-2007 05:48 PM - edited 11-29-2007 05:49 PM
Hello Will and welcome to the community!
It appears that you have the XY Graph inside of a loop and each time the loop runs your previous data is being overwritten by the new data. If you are only writing two points of data to the graph each time your code loops then you would only see pairs of connected points each time the graph updated. You can make the XY Graph display all previous data as well as the new data each update by wiring a false Boolean constant to the "Reset" input of the Build XY Graph Express VI.
Another option would be to use a loop and a shift register and build an array with all of your data in it before passing it to the Build XY Graph VI as shown below.
If I have misunderstood your question please reply with more details so that I can provide a more relevant answer.
Brooks Campbell
11-30-2007 01:46 PM - edited 11-30-2007 01:47 PM
11-30-2007 01:49 PM
11-30-2007 03:37 PM - edited 11-30-2007 03:40 PM
Hello again.
I should have explained my example more. I used the same signal for both the X and Y inputs of my XY graph, so the linearly increasing line is expected behavior. In order to do what you want, you need to use a split signal VI after the DAQ Assistant express VI. Once you place the split signal VI on the block diagram you can expand it so that it has two output nodes and wire them to the X and Y input terminals of the Build XY Graph express VI.
Similarly, for the array example, you can use the split signal and then use two build array VIs. In order to reset the graph you can just initialize the shift registers with a zero to clear the graph each time it runs. This will clear the graph at the beginning of each run (and not at the end).
12-03-2007 11:40 AM - edited 12-03-2007 11:46 AM

01-31-2008 10:10 AM