LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Worform Graph:Drag from the tree control then display in the waveform graph

Solved!
Go to solution

Hello, 

I want to achieve the following function:

Drag channel 1 and channel 2 from the tree control in the left, then in the right the waveform graph will display the two channels.

Does anyone have any suggestions?

Thanks!

Henry

0 Kudos
Message 1 of 5
(2,380 Views)

Hi henry,

 

I would use a listbox instead of the tree:

- you can enable multiple selection mode

- you can easily react on value change events

- the user doesn't need to drag the items: all that is needed is to select them!

- you can easily read the selected items and so put the plots in your graph…

Best regards,
GerdW


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

Hi GerdW,

Thanks!

I will give further explanation to my question:

-Drag "Channel 1" to graph 1 and  "Channel 2" to graph 2;

or

-Drag "Mean in Channel 1" and "Mean in Channel 2" to graph 1, and drag "Max in Channel 1" and "Max in Channel 2" to graph 2.

 

Best regards,

Henry

0 Kudos
Message 3 of 5
(2,355 Views)
Solution
Accepted by topic author henry_2020

Hi,

 

     Check the attached VI.

0 Kudos
Message 4 of 5
(2,350 Views)

Hi Jay,

This is the answer I want,Thank you!

 

Best regards,

Henry

0 Kudos
Message 5 of 5
(2,338 Views)