03-23-2010 09:48 AM
I am using LabVIEW 8.6. In my program, the user has the ability to enable or disable autoscaling for the x axis by right clicking the chart. I use a proprty node to turn the plot to a dashed line during an alarm condition. The issue I have is - if x autoscaling is disabled, the plot style is always solid for new data entering the chart regardless of the property node setting. If autoscaling is enabled, the line style changes as I expect.
Attached is a simple program that illustrates the problem. I don't know if I am doing something wrong.
Any comments will be appreciated.
Thank you,
Dave F
03-24-2010 04:03 PM
Hi Dave,
I looked at your VI and I definitely see the behavior you mentioned. However I believe this is expected. The plot is actually still writing in the dashed line, however very compactly. You can see this if you make your x range smaller(perhaps 0 to 10). This shows the dashed line. With autoscaling turned on, the graph is redrawn every loop iteration. so the dashed line is easy to see when zoomed out.
I think a better solution for what you are trying to use plot color, line width, etc. Or if you definitely want it to do Line style, you can have it change line style to 0 and then back to 1 every loop iteration. This will force it to redraw, but will add overhead to your code and slow it down slightly.