07-01-2009 08:16 PM
Hi,
I am trying to graph two plots in a waveform chart, where the x-axis is the system time. The problem I was originally having was that depending on the user's input for "Rate" and "Number of Samples per Channel", the portion of the plots that were being shown would change drastically. Therefore, I needed to be able to control the range of the x-axis programatically. I have managed to do this. However, the problem I have now is that the x-axis is fixed (at the correct range), with the original maximum and minimum, and does not update itself (e.g. strip chart mode).
Can someone please help me figure this last bit out? I have attached what I have so far. Any help is greatly appreciated.
Thanks.
P.S. I am using Labview 7.1 and a simulated DAQ device (PCI 6251).
07-02-2009 12:01 AM
07-02-2009 11:20 AM
Hi Dennis,
Thanks for looking into my question. Unfortunately, I cannot use Waveform in DAQmx Read in my actual program, I must use 2D DBL (what I have attached here is a much simpler version of my program just to use as an example; the actual program I am working on is too big and unnecessarily complicated to post for this question).
To explain my question better: if you run the vi that I have attached, you will notice that the x-axis in the graph called "WC Waveform" does not change values (eventhough the range is correct, i.e. 0.1sec for the current parameters). I need to have the x-axis represent the real (system) time while the vi is running, and be able to control its range (which apparently I have done at the expense of having the limits of the x-axis fixed at the initial, t0, values). I am not sure if I have explained myself any better or not!
Thanks again,
DanceWiz
P.S. I have attached the vi here again with some minor changes and the default values saved this time (which I forgot to do for the last attachment), so if you run this vi you will see what I am talking about. If you change some of the input parameters on the front panel or change the x-axis in the "WC Waveform" chart manually, you should get an idea of the problem).
07-02-2009 02:23 PM
07-02-2009 02:43 PM
Hi,
I have tried that as well, and it does not work. I have attached screen shots of this.
Thanks.