LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Time Update and Range for a Waveform Chart

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). 

0 Kudos
Message 1 of 5
(3,636 Views)
I'm not sure I understand your question but you should be aware that if you select to get a waveform data type from the DAQmx Read, you can wire it directly to the chart and have it display time without going through any of those property nodes.
0 Kudos
Message 2 of 5
(3,621 Views)

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).

0 Kudos
Message 3 of 5
(3,596 Views)
You are turning the array into a waveform, but you aren't putting any initial time or delta time into the cluster of the waveform data.
0 Kudos
Message 4 of 5
(3,586 Views)

Hi,

I have tried that as well, and it does not work.  I have attached screen shots of this.

Thanks.

Download All
0 Kudos
Message 5 of 5
(3,579 Views)