Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how can get x-axis (time) start from zero in second waveform chart

Dear All,

I am wodering if somone helps me.

I have a program which graph temperature and its derivative as waveform chart.

everytime I run the program, temperature chart starts from zero on the x-axis (time), but its derivative will never start from zero again and always continues form the last time which has on the x-axis.

How can I get a second chart which always start from zero same as first chart?

Regards....

Download All
Message 1 of 4
(3,741 Views)

Hi Neka:

 

Just to clarify, you want both charts to start graphing from zero when you run the VI?

 

I'm not sure what you are doing differently with your second chart partly because it's not displayed where you're writing to it on the block diagram.  Could you post your VI so we can see what settings you have on each chart or at least  post a screenshot of a larger portion of the block diagram so we can see where you're writing out to it?

Alex Person
NI-RIO Product Support Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,706 Views)

Hi

Thanks,

the attached is the file.

0 Kudos
Message 3 of 4
(3,701 Views)

A chart is supposed to append new data to old data and why would either of your charts start at zero each time. You are stripping out all of the time information by the needless conversion of waveform datatype to dbl array and then to dynamic data. Why would you do any of that? It makes no sense. If you want to display time information, don't remove it from the data.

0 Kudos
Message 4 of 4
(3,699 Views)