LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

making THREE graphs into ONE

I have a LV in 6.0. It has THREE graphs. I am trying to make it into a single graph. I have tried pulling the graphs out of the cases but I get other errors. Can anyone helo. The LV is attached.
0 Kudos
Message 1 of 9
(3,786 Views)

Looking at a front panel in which everything is white can be a bit problematic. Any reason why you did that?

Your subVIs weren't included. If you want to post code which includes subVIs, you should save your code in an LLB (File>>Save with Options>>Development Distribution).

I think what you want to do is move the chart you want to update out of the case structure, place a Build Array outside the case structure, wire the charts into the Build Array and wire the array into the chart indicator. You may need to right click the build array and select Concatenate Inputs. Also, you need to right click the tunnels and select Use Default Data.

Now I see another option. Your code only seems to run once. If what you want is that in any case you choose the data will get to the same chart, your problem is that one of your cases (Readings) has a 2D array and the others have a 1D array. You can't wire 1D arrays and 2D arrays into the same tunnel. What you probably want to do is add another Build Array inside the readings case and check Concatenate Inputs on that one. That way it will be a 1D array and you can wire it into the same tunnel as the other cases.


___________________
Try to take over the world!
Message 2 of 9
(3,788 Views)
The front panel is white because I want to save ink when I print the LV to check. I am on a economy budget. Sorry for the inconvenience. Thanks. I have manage to sent the vi.lib. I could not sent earlier because it was too big about 1800Kb. Now I made it less than 100kB. Hope it goes through.
0 Kudos
Message 3 of 9
(3,767 Views)
The front panel is white because I want to save ink when I print the LV to check. I am on a economy budget. Sorry for the inconvenience. Thanks. I have manage to sent the vi.lib. I could not sent earlier because it was too big about 1800Kb. Now I made it less than 100kB. Hope it goes through. Sorry. I still cannot get through. Maybe I must drop the.lib
0 Kudos
Message 4 of 9
(3,767 Views)

Did you follow my suggestion?

If you want all cases to update to a single chart, wire all of them to one chart outside the structure and check the Concatenate Inputs option in the Build Array inside the "Readings" case. Another way of doing it is using Insert into Array instead of Build Array.

If this doesn't help, you will need to better explain your problem.


___________________
Try to take over the world!
Message 5 of 9
(3,762 Views)
I have managed to make the THREE graphs into ONE. However I still have the tunnel problem. Your advice was "Also, you need to right click the tunnels and select Use Default Data." However when I right click the tunnel I get create & array tools only. I cannot get default data. I am using LV6.0
0 Kudos
Message 6 of 9
(3,746 Views)
When you right click on a white tunnel (meaning that some cases have nothing connected to it), you should have an option called (if I rememeber correctly) "Use Default if Unwired". It might be called something else or not exist in 6.0.
If it doesn't exist, you can simply create an empty 1D array for the other cases.

___________________
Try to take over the world!
Message 7 of 9
(3,739 Views)
I have done as you adviced. I am sending in the new LV. Can it made better?
0 Kudos
Message 8 of 9
(3,733 Views)
There is always room for improvement. You can start by cleaning your code, making sure your wires are straight, creating subVI icons, placing documentation if needed and so on. Then, maybe do something about those colors (unless you like them. It's your FP and they don't seem to be too bad). You went from all white to all crazy colors. Also, look at your cases. You seem to have some repeating code. Try and see if you can take some of it out of the case.

___________________
Try to take over the world!
Message 9 of 9
(3,723 Views)