LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

Plotting two values on a graph

Hello,

I'd like to plot temperature and humidity on the same graph, every 500ms.

What is wrong with my code?

Kind Regards,
Balázs

Message 1 of 6
(3,526 Views)

Re: Plotting two values on a graph

Hi Balázs,

What is wrong with my code?

Basic LabVIEW knowledge:

1. Open the context help (using Ctrl-H)

2. Move the mouse over the broken wire and read the context help. Now you know what's wrong.

3. Move the mouse over the XYGraph terminal and read the help. Now you know which datatype that graph expects instead…

Simple solution: replace the XYGraph by a waveform chart.

(Think about why that solution works!)

Best regards,
GerdW

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

Message 3 of 6
(3,480 Views)

Re: Plotting two values on a graph

Personally, I would go with a waveform chart.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 6
(3,454 Views)

Re: Plotting two values on a graph

Hi there,

Well, is it possible to plot multiple waveform real time on the same waveform graph and see the data of all time measured?
(Time of acquisition is unknown)

Kind regards,

Balázs

Message 5 of 6
(3,361 Views)
Solution
Accepted by topic author LTBALAZS

Re: Plotting two values on a graph

Hi Balász,

is it possible to plot multiple waveform real time on the same waveform graph

Yes.

and see the data of all time measured? (Time of acquisition is unknown)

Yes and no.

Yes: you can collect all data in arrays and plot them.

No: somewhen you need too much memory to hold "all data" and the graph will be very slow when handling large arrays…

Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 6
(3,356 Views)