LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph - How to capture data from start to end

Hi

 

I want data (results) from start time till end on a graph. My graph is showing moving data. What should I change?

0 Kudos
Message 1 of 23
(3,431 Views)

Hi kdm,

 

- when you use a chart: use a graph!

- when you use a graph: enable x axis autoscaling (provided you really collect all data in an array)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 23
(3,425 Views)

Hi GerdW,

 

Thanks for a soon reply. I got it. 

Now, I want my x axis to be marked at every second. How do I do that?

0 Kudos
Message 3 of 23
(3,410 Views)

Hi kdm,

 

you want a marker (aka tick) every second? Set the x axis properties to do so!

 

But: as soon as you will have too many ticks LabVIEW will limit the number of ticks so they will fit on the x axis…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 23
(3,382 Views)

Hi Gerd,

  

I autoscaled x axis, its not working. First of all, now my current time (from PC) is not mapping onto my graph. I've taken the current time and linked it to the waveform chart, but there is no effect on my chart.

 

PS: What do you mean by "when you use a chart. Use a graph!" ?

0 Kudos
Message 5 of 23
(3,366 Views)

Hi kdm,

 

charts and graphs are different indicators in LabVIEW with different abilities…

 

As long as you don't provide a VI we can't offer much more help!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 23
(3,361 Views)

Here is my chart part..

0 Kudos
Message 7 of 23
(3,352 Views)

Hi kdm,

 

so you really use CHARTS. Please use correct LabVIEW wording as there are huge differences between CHARTs and GRAPHs!

 

As said before: use graphs instead of charts. They offer much more abilities with the minor overhead of having to collect the data in your own array…

 

Open the example finder, there is an example demonstrating how to use charts AND graphs!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 23
(3,346 Views)
If you want to plot y versus time, you should set the DAQmx read to return a waveform data type and skip that property node.
Message 9 of 23
(3,345 Views)

Thanks all! Got it.

@Gerd:  I used a chart itself

0 Kudos
Message 10 of 23
(3,337 Views)