04-12-2012 05:55 AM
Why are there only 2 lines in the chart? There should be 6 lines as in the data mainstream
04-12-2012 07:52 AM
04-12-2012 08:01 AM
04-12-2012 08:51 AM - edited 04-12-2012 08:54 AM
Ok. I did some minor changes in my VI. Use the attached one as my vi. There are 6 values in the main array, 3 Flow in different positions, 3 Pressure in different positions, as you can see in my vi. So there should be 6 lines in the graph. Whenever I adjust any values in the main datastream, the graph should change corresponding to the change of the values.
There are only 2 axis , Flow and Pressure, on the different sides. The unit of each axis should be corresponding to the unit defined at the beginning. Therefore it's gonna be Flow (L/min or L/hr) and Pressure (pascal or bar).
The plot names should be the combination between the name of the value and its position, such as Flow After the engine, Pressure Behind the cooling valve, etc.
Hope you understand what I mean . Thanks
04-12-2012 03:38 PM
in that case, you have to change how it take array unit. Because you are putting a array with 6 element and another with 2, therefore the for loop work for two cycles.
Also is recomended modify the properties graph in other for loop, after displaying the data. In some occasions can give error.
Regards
04-16-2012 06:17 AM
I tried to adjust my code to be like yours but it turned out only one line in the graph. It's supposed to be 6 lines.
04-17-2012 09:43 PM
I forgot tell you transpose the graph and then, work fine.
Regards
04-18-2012 04:14 AM
It worked fine by having the correct axis names as defined. However the value didn't correspond with the values changed in the data mainstream. When I adjust the value in the main array, the graph doesn't follow the adjustment. Why is that?
I change my vi a little bit in terms of defining axis names.