Log in

View Full Version : Pull data out of Case Statement


b_mallerd
08-02-2007, 20:54
Hi everyone, I have a question about the case statements in the supplied Labview Application:


Lets say I wanted to put more than 1 data on a graph, for example, PWM01 and PWM08. Does anyone know how I can pull data from different Case Statements and put them together on a graph without causing an error?

Joe Ross
09-02-2007, 12:25
I'm by no means a labview expert, but here is how I got this to work last year.

In one case, I created a simple numeric display of the first variable. Then, in the second case, I created a local variable (Programming -> Structures> Local Variable) that referenced the numberic display in the other case. I've attached a picture of what I did.

I also used the concepts from this example VI for displaying multiple items on a graph: http://www.chiefdelphi.com/forums/showthread.php?t=45210

I hope this helps.

b_mallerd
09-02-2007, 20:37
Thank you for the suggestion of using local variables. It's working for me, thanks!