LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple waveform charts "stacked plots" with limits

Solved!
Go to solution

Hi everyone Smiley Happy

 

Here is my problem, currently i have 4 waveforms "attached" together with the "Build Array" function and connected to a waveform chart.

I use the option "stacked plots" in order to have 4 curves with only one x-axis.

What I want to do is to add for each curve an upper limit line.

 

Thank you very much in advance for your replies!

0 Kudos
Message 1 of 11
(3,687 Views)

Hello Rafale,

 

Maybe a question out of the box:

Do you want the current maximum of the signal?

Or do you just want to show a line which you should not go above?

 

In the latter case: Is this Upper Limit fixed (during your measurements)?

 

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
Message 2 of 11
(3,658 Views)

Hello ThiCop! Smiley Happy

 

Yes, I want to show a line which we should not go above and yes this limit is fixed during our measurements.

(I receive the value of the measure and its upper limit by TCP / IP)

 

Thank you for your reply!

0 Kudos
Message 3 of 11
(3,651 Views)

Hi rafaele,

 

add 4 more plots to your chart to show the limit lines...

Best regards,
GerdW


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

Hello Rafal,

 

As you probably noticed in my other post I like to have all background information.

I'll do the same here, but I'll also give you first a relatively simple solution.

 

If you have a Graph (and not a Chart), then you could just use Cursors to do this and everything would be fixed.

Seeing that you're not using a Graph, you can add an extra data set (with the constant Maximum) that you also write to your Chart. (see Gerd 😉 )

Or you could use a Graph and its Cursor Functionality and make it behave like a Chart.

 

There are several options, but to have a better idea at what might be best suited, it might be interesting to have a complete overview of how your application works.

Does your TCP/IP communication send the maximum/boundary and all the data at once?

Or do you really want to see each new data sample that appears on the TCP/IP "input"?

 

 

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
Message 5 of 11
(3,646 Views)

Hi GerdW,

 

If I do this, the limit lines will be displayed on separate graphs and I will have 8 waveform charts ...

 

Thanks.

0 Kudos
Message 6 of 11
(3,638 Views)

Hi ThiCop, Smiley Happy

 

 
The measurements are performed continuously and the goal is to display the current and former values of measures taken over a period of two weeks and that's why I use chart and not graph.
An other computer sends measurements to my VI every 2 minutes and possibly the new upper limit if needed, these informations are then placed in a queue.
 
I use chart in order to avoid the management of buffers. I prefer to have 4 separate waveform charts with their upper limits that having to manage buffers.
 
Thank you again for your reply.

 

0 Kudos
Message 7 of 11
(3,633 Views)

Hi rafaele,

 

nothing comes for free! The chart is provided as is...

 

Your next best option is tu use 4 charts instead of just one with stacked plots. Hide the x axis for 3 of them and display 2 plots each...

 

Best regards,
GerdW


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

Hi Gerdw,Smiley Happy

 

Ok thanks! I will use 4 separate waveform charts, it's a bit unfortunate, it would have been "nicer".

I've already tried to hide the x-axis of 3 waveform charts and then superposed them, but it's not very "pretty".

0 Kudos
Message 9 of 11
(3,621 Views)
Solution
Accepted by topic author rafale350

Hi rafaele,

 

use the charts from classics palette. Make their border/background transparent and use a decoration as "border" for all 4 of them...

Best regards,
GerdW


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