LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Relative time on waveform chart

Hi kdm,

 

you ask why?

Because you are using a chart despite of being told to use a graph instead!

Because you are resistant to follow people's suggestions!?

 

Do you mind to attach your VI with some example data (or a loop generating example data)? (LV2011 preferred)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 19
(915 Views)

Hi GerdW,

 

Here is the VI

0 Kudos
Message 12 of 19
(897 Views)

Hi kdm,

 

which chart are you talking about?

 

Create a graph instead. Much easier!

 

What's the point of all those sequence frames? What's the point of all those local variables?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 19
(887 Views)

Hi all,

 

 

I have set conditions to start graph at 6am. I want it to stop graphing at 18:00. Anyone has any ideas?

I have attached my VI.

 

@Gerd  Thanks. 

 I was talking about the power chart.

0 Kudos
Message 14 of 19
(868 Views)

Hi kdm,

 

when you want to graph between 0600 and 1800 you should check the hour of the current time. Right now you only check minute and second…

 

check.png

And of course you have to change the array build too. Right now you will graph all data as all data is collected…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 15 of 19
(862 Views)

Hi Gerd,

 

Thanks a lot! Smiley Happy

0 Kudos
Message 16 of 19
(835 Views)

@Gerd,

 

As we need to use build array for graphs, won't it increase the memory usage? My labview software crashes when I use build arrays (reason: high memory usage).

 

Also I am more familiar with charts and prefer to use charts.

 

Problem now: The chart points (on the attached vi) has reached more than 15:00 (time), when the current time is still 14:13. I have set the multiplier as 0.5 (as loop time is 0.5). What could be the reason?

0 Kudos
Message 17 of 19
(833 Views)

Hi kdm,

 

As we need to use build array for graphs, won't it increase the memory usage?

Yes, you need to limit the memory usgae. The same as you do by setting the history size of charts…

 

What could be the reason?

Your continued changing of X axis offsets?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 19
(824 Views)

Hi Gerd,

 

I have set the "offset code" outside the while loop and again set "offset" at a clear graphs loop (which is inside the while loop.. (It is not shown in the above vi).

This looks complicated and I think it will use more memory. Is there a better solution? 

0 Kudos
Message 19 of 19
(819 Views)