LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change the color of part of a waveform plot based on button

Solved!
Go to solution

Hello,

 

as you can see, we are not able to help you if you don't explain clearly what you want to achieve. Still unclear:

  1. Who presses the the buttons, and when (to which events)?
  2. What is the datarate of the aquisition?
  3. Is it finite measurement or continuously?

Describe in detail the setting of your measurement.

Please help us letting help you.

Greets, Dave
0 Kudos
Message 21 of 25
(417 Views)

Hi Mehdi,

 


@MEHDI_LIS wrote:

Hi, thank you for the response. So i had the same problem as i said before, this creates one curve with one color when i click on button ( when i click on another button it creates one another curve with one color) but not differents sections with differents colors.


But you wrote:


@MEHDI_LIS wrote:

I'm going to control a pump, a heater, and a cooler using three buttons in the user interface. I also have a temperature sensor, and I want to show the three phases in a graph by coloring the curve. If the pump is activated, the curve should be colored yellow; if the heater is activated, the color should be red; and if the cooler is activated, the curve should be blue.


This will happen when you use my suggestion.

You control the buttons and according to your selection one of 3 plots is filled with new samples…

 

As has been said:

Write down your requirements - correctly, including ALL of them, without any contradictions…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 22 of 25
(410 Views)

Sorry for my explanation. I'm going to control a pump, a heater, and a cooler using three buttons in the user interface, so the user can press the buttons randomly to demonstrate the function of the temperature sensor. I also have a temperature sensor for continuous measurement, and I want to show the three phases on a graph by coloring the curve. If the pump is activated, the curve should be colored yellow; if the heater is activated, the color should be red; and if the cooler is activated, the curve should be blue.

I have the same problem as I mentioned before: this setup creates one curve with one color when I click a button (when I click another button, it creates another curve with one color) but not different sections with different colors.

What I really want is to show the difference in the curve as in the picture below.

MEHDI_LIS_0-1719387736113.png

 

0 Kudos
Message 23 of 25
(404 Views)
Solution
Accepted by MEHDI_LIS

Hi Mehdi,

 


@MEHDI_LIS wrote:

I have the same problem as I mentioned before: this setup creates one curve with one color when I click a button (when I click another button, it creates another curve with one color) but not different sections with different colors.


I don't understand your problem, I can easily use switches (or RadioButtons) to select "sections" of a curve:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 24 of 25
(391 Views)

Thank you all for your responses. I resolved my problem , the last program worked with me.

0 Kudos
Message 25 of 25
(367 Views)