12-23-2013 11:10 PM
Hello,
Please find a screenshot attached herewith.
There are two images one is the graph plotted in MS Excel and the other one in LabVIEW.
I could replicate the same as what is obtained in MS Excel except the two plots i.e horizontal lines from point 1-2 & 3-4 .The two plots should be of two different colors. Although I have set them so in the properties tab of XY-graph they are not getting discriminated from the two horizontal plots of P1 & P2 as there is overlapping.
Also I want my graph to show the enthalpy and pressure values as what are shown in the excel graph.
I have also attached my VI in version 8.2.1 for the convenience. Thanks in advance
Best Regards,
Snehal Upadhye
CLAD
12-24-2013 12:10 AM - edited 12-24-2013 01:16 AM
You have a layering problem. You need to arrange the plots in the right oder so the short lines are in front of the long lines. (make the blue horizontal line thinner and you see that the sort line is behind it. Also, the x and y are swapped for the last plot.
(There are also some general programming issues. "index array" is resizable, so you only need one instance. It is sufficient to write the properties once, and not every 300ms. You only neet to write them if the actually change. Besides, if the properties are for the same object, you only need one node. You only change the line width of one plot. Maybe you want to iterate over all plots instead. Resize it for two properties and select the ones you want. If you change the termination condtion to "stop if true" you don't need to invert the button value)
12-24-2013 01:21 AM
Here's one possible solution.
12-24-2013 01:37 AM
@SuLAB wrote:
Also I want my graph to show the enthalpy and pressure values as what are shown in the excel graph.
You can use annotations.
12-24-2013 06:34 AM
Hello Altenbach,
Thanks for the solution.
That is the best possible solution I could ever get with optimized block diagram content.
Kind request to just explain me the reason behind using Re/Im To Complex function as I am not getting exactly what is being achieved by use of that function.
Also regarding "Annotations"- as I am not using any cursor..is it possible to place Annotations in that case?
Best Regards,
Snehal Upadhye
CLAD
12-24-2013 08:35 AM
xy graphs take a variety of inputs. Complex data is probably the simplest structure and it plots IM vs RE.
look at the help for annotations.