LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting two values on a graph

Solved!
Go to solution

Hello,

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

 


 temperaturehumidity.jpg

 

What is wrong with my code?

Please, help!

 

Kind Regards,
Balázs

0 Kudos
Message 1 of 6
(4,493 Views)

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
(4,482 Views)

time.png

Message 3 of 6
(4,447 Views)

Personally, I would go with a waveform chart.


GCentral
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
Download All
Message 4 of 6
(4,421 Views)

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

0 Kudos
Message 5 of 6
(4,328 Views)
Solution
Accepted by topic author LTBALAZS

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
0 Kudos
Message 6 of 6
(4,323 Views)