LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting multiple sensor values on a waveform graph with two y axes of different scale

Solved!
Go to solution

I want to plot five temperature sensors values and five absolute humidity values calculated from relative humidty sensors in a single graph. 

 

Clipboard02.jpg

Of course I can just bundle them all and display it in a graph but then scaling is not right. 

 

I tried to build an array of both sets of values and then connected it to the graph but I am not getting it right. Is there a way to do it?

0 Kudos
Message 1 of 6
(1,904 Views)

Hi girish,

 


@girish_jadhav wrote:

I want to plot five temperature sensors values and five absolute humidity values calculated from relative humidty sensors in a single graph


You use several charts in your VI - and no graph at all!

 

You need to create additional Y scales and assign each plot to a scale…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,893 Views)

@GerdW wrote:

Hi girish,

 


@girish_jadhav wrote:

I want to plot five temperature sensors values and five absolute humidity values calculated from relative humidty sensors in a single graph


You use several charts in your VI - and no graph at all!

 

You need to create additional Y scales and assign each plot to a scale…


Hi GerdW,

 

I made a mistake in the description. I am actually using a chart. I tried to add one more y scale and used property node to assign the scale but it didn't work. I guess the same output as in the bottom right plot. 

0 Kudos
Message 3 of 6
(1,884 Views)

Hi girish,

 


@girish_jadhav wrote:

I tried to add one more y scale and used property node to assign the scale but it didn't work. I guess the same output as in the bottom right plot. 


You can assign the plots in their context menu in the plot legend, no need for property nodes…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(1,879 Views)

Hi GerdW,

Clipboard01.jpg

I did but still the plot looks the same 😞 

I have used cluster to array and then built a 2D array to plot the waveform. Would it work this way?

Clipboard02.jpg

I think it is plotting like this 21.57, 6.9. 21.26, 4.8... But I want each value as a different line in my chart.

0 Kudos
Message 5 of 6
(1,873 Views)
Solution
Accepted by topic author girish_jadhav

Hi girish,

 


@girish_jadhav wrote:

I have used cluster to array and then built a 2D array to plot the waveform. Would it work this way?

Clipboard02.jpg

I think it is plotting like this 21.57, 6.9. 21.26, 4.8... But I want each value as a different line in my chart.


Apparently your method does not work!

Either use a cluster of 10 elements - or a 2D array of dimensions 1×10. Your 2D array of 2×5 elements does not work…

Did you read the context help of your charts to learn about the supported datatypes?

Best regards,
GerdW


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