Real-time updates of an XY graph with a 2D array (x,y) inside a for-loop

Real-time updates of an XY graph with a 2D array (x,y) inside a for-loop

Post by Mendeleev3 » Fri, 27 Jun 2008 03:40:06


Hi all,   I am new to this forum, and relatively new to LabView (I've used TestPoint in the past), and I have a question. I have implemented a for-loop to grab data from an LCR meter (via GPIB) which becomes the Y data. The X data is calculated and tunneled into the for loop (although varies with incrementing 'i'). Anyhow, I am trying to store all of the data and keep the user updated throughout the test by plotting the XY Graph each iteration. Right now, the XY Graph plots one point at a time, so somehow the data I am appending to the 2D array (x,y data) is getting overwritten each itteration. How can I make it so that each new point is added to the array, making it bigger so that the data will be saved and so that the user will be able to see all the data in real-time on the graph as the test in running?Thanks<img src="file:///C:/DOCUME%7E1/AUTOPR%7E1/LOCALS%7E1/Temp/moz-screenshot.jpg" alt="">P.S. I would post a screenshot, but I'm not sure how to upload here.
 
 
 

Real-time updates of an XY graph with a 2D array (x,y) inside a for-loop

Post by Aashish_ » Sat, 28 Jun 2008 11:40:05

Hey Mendeleev3104,

 

There is an attachment section at the bottom of the post when creating or editing a post. You might want to use that to attach a picture of your code.

None the less I will give a shot with some suggestions without viewing your code.

 

You should look into using shift registers along with the Insert Into Array.vi to build an array of numbers. A good source of information for shift registers can be found in the <a href=" http://www.yqcomputer.com/ #Stacked_Shift_Registers" target="_blank">For Loop and While Loop Structures</a> help.

 

Hopefully this helps!!