LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hide graph on click on button

Hello,

I would like to advice how do this in LabView:

 

I have XY graph and with two position-ON/OFF.

When I will have button in ON I would like to see graph and when I will have button in position OFF a would like to hide this graph.

 

Thanks for advice 😉

0 Kudos
Message 1 of 19
(3,426 Views)

Hi adssad,

 

use a "visible" property of the graph...

Best regards,
GerdW


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

Have you tried using a property node "Visible" for the XY Graph? See attahced...

Message 3 of 19
(3,420 Views)

It going pretty well!, thanks for fast advice 🙂

0 Kudos
Message 4 of 19
(3,412 Views)

One question yet, Is existing some function similar as visible, to clear history graph on this click button?

 

Thanks

0 Kudos
Message 5 of 19
(3,375 Views)

Just write an empty set of data to the graph.

0 Kudos
Message 6 of 19
(3,367 Views)

How can I do that? Please

0 Kudos
Message 7 of 19
(3,360 Views)

Before running your VI after opening it up, right click on the wire that goes into the Graph terminal and pick Create Constant.  That will give you an empty set of data that is the right datatype for the graph.  (Graphs have different ways of providing them data that have differences in the datatype.)

 

Now take that constant and put it at the spot in your code where you decided to empty the graph (such as in a case structure.)

Message 8 of 19
(3,352 Views)

Sorry but it isnt work it for me. Could you show me please on some example? When I click on logic button I need write this empty set of data.

 

Thanks

0 Kudos
Message 9 of 19
(3,318 Views)

Hi adssad,

 

pseudo code is like that:

IF button = TRUE THEN write empty data to graph

 

 

check.png

Best regards,
GerdW


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