Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Graph ActiveX

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 

0 Kudos
Message 1 of 6
(4,355 Views)
here is a copy of my graph ..
0 Kudos
Message 2 of 6
(4,351 Views)

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.

Thanks,
Mohammed Haseeb|Measurement Studio|National Instruments
0 Kudos
Message 3 of 6
(4,332 Views)

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. 

 

 

0 Kudos
Message 4 of 6
(4,317 Views)

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.

Thanks,
Mohammed Haseeb|Measurement Studio|National Instruments
0 Kudos
Message 5 of 6
(4,294 Views)

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 

0 Kudos
Message 6 of 6
(4,255 Views)