LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

different plots in one graph

Solved!
Go to solution

@Student_LV wrote:

Hello!

You will find attached the VI of getting plots in one graph, The question is How could add property nodes ( plots name , active plots ..) applicable to all the plots , while in each case of the condition structure, I have different plots number and name.

 


Whenever you are adding a plot to the array in the shift register, add its name to an array of strings in a second shift register. Once the loop is done, set all the names using a FOR loop. (None of the property nodes inside the loop are ever needed! Delete them all!)

 

SetPlotNames.png

 


@Student_LV wrote:

 

How to make the cursor move from one plot to another and display the name of that plot ( the name exists in the legend) 

 


As I said, for that the VI needs to be interactive. Create an event based state machine with states to create the graph (as above) and other events to look for cursor interactions. 

 

 

Message 21 of 25
(445 Views)

Greetings ,

 

I've looked through various forum threads and haven't been able to track down a solution. In the main VI, I have a sub VI which searchs elements from an Excel file and display them in a list box. so I get a lisbox outputed.  then In a second step, I want to select elements from this listbox to show their corresponding plots ! I used local variable, property node "Value", but in the 2 cases, I couldn't use the indicator after that, as a control to select items from it ? Any trick please how to solve this 

Thank you,

0 Kudos
Message 22 of 25
(435 Views)

Hi Student,

 

no need to create a new thread for the very same problem, stick with your original discussion…

 

As Christian has said before: you should not use indicators when you need controls!

Best regards,
GerdW


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

Hello GerdW,

 

I created a new thread because my question does not deal with the same issue as the fisrt discussions, how to get different plots in one graph, 

It's differen, You said " you should not use indicators when you need controls ", so how could I get the elements of the listbox ? Isn't necessary to be displayed so that i would be able to select items ?

Thank you 

0 Kudos
Message 24 of 25
(424 Views)
Solution
Accepted by topic author Student_LV

Hi Student,

 

how could I get the elements of the listbox ?

The "elements" (or more accurate: the object names) of a listbox are written using a property node. No need to make the listbox an indicator: you can set the objects of a listbox control using the very same property node!

 

Isn't necessary to be displayed so that i would be able to select items ?

Yes, sure.

But as has been said before: make your listbox a control to let the user use it to select items…

Best regards,
GerdW


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