09-11-2008 10:48 AM
Hi .. I am using a 2D graph activeX to plot data collected from a 6120 card. Card is turned to Warp Mode with the lab View code available online. I am using a frequency of 1MHz. Each time when Analogncallback is called, collected data is plotted on the MStudio graph. My problem is that no matter what, my last point always is zero. Suppose I have collected 10^6 points. These points are 8V on average. However the last point is always 0V. Due to this single point, my graph is seen as a single line at 8 volts. I tried plotting 10^6-1 points, but still the last point is zero on the graph. Can anybody tell me please, where the problem might be?
Thank you in anticipation.
Vijay
09-11-2008 11:07 AM
09-12-2008 03:17 AM
Hi Vijay,
Its not totally clear to me as why the last point is always zero. Does the data collected has the last point as zero always or does the graph display the last point as zero incorrectly? It would be helpful if you can attach a sample application which reproduces this behavior.
FYI : By using warp mode the first point in the data acquisition is bad and should be discarded http://zone.ni.com/devzone/cda/epd/p/id/3987. See if you are considering this while plotting.
09-12-2008 08:50 AM
Hello Haseeb,
Thank you for your reply. I checked for the value of the last data point. It has a reasonable value. However on the graoh I get a zero for the last point. I have attached a screen shot in my previous reply. Do you want me to send you the routine?
Thanks
vijay.
09-14-2008 01:16 PM
Hi Vijay,
I am not being able to reproduce this behavior on the 2D Graph. If you would be kind enough to create a simple application which reproduces this behavior, it would be lot easier and faster to pin point the exact problem. You can create a simple application, plot some data on the 2D Graph similar to way you are doing in your project reproducing the behavior and attach the application as a zip file.
09-19-2008 08:37 AM
Hello Haseeb,
I tired to run the graph part in a separate fapplication. And then I realised that the dimensions of the data array from acquired data was one less than the dimensions i used to define my data for the graph. Thus last point in my graph data was always zero. It was a very careless mistake. Sorry to bother you.
Thank you once again.
Regards
Vijay