Hello, I would like to autoscale the y-axis in a X-Y plot with the minimum set always to 0 and while the maximum autoscales. I tried to set y-scale start and minimum (using the XY plot properties) but still the y range minimum is set to the minimum value of the data. I would like the y-axis scale to be set at 0 for the minimum and the max. of the data for the maximum. Can anyone help with this. Thanks.
when you used the property node did deactivate the feature "auto scale" in the context menu? If not, the values will be written to the y scale but immediatly afterwards the y scale will perform an autoscale and you won't see the result of thw writting of the property node.
Stephan, Thanks for your comments, but I am afraid I do not follow your advice. In the property node, I cannot see any context menu. I previoulsy had several property nodes so that the user could either autoscale or set the max and the min manually. Could you please elaborate on your comment? Thanks. Karthik.
sorry, I was a bit unprecise! There is no context menu for the property node, but if you click right on the graph belongig to it on the front panel than you will get a context menu. There you have to disable "auto scale" for the y axis. This should be menu item under y axis or similar (unfortunate I have a german version of LabVIEW, so I'm not aware how the correct names of the menu items og the english version might be).
It is generally a good idea to summarize your examples that you post. That way;
1) We do not have to down load your code to see what "method 1" is.
2) You can resize your porperty nodes and mainipulate the properties from top to bottom in the order you want. This will avoid the multi-frame seq structure.
3) Defering front panel updates and then undefering afterwards may improve performance and appearence.
> I would like to autoscale the y-axis in a X-Y plot with the minimum > set always to 0 and while the maximum autoscales. I tried to set > y-scale start and minimum (using the XY plot properties) but still the > y range minimum is set to the minimum value of the data. I would like > the y-axis scale to be set at 0 for the minimum and the max. of the > data for the maximum. Can anyone help with this. Thanks.
You can either turn off autoscaling and set the max Y Scale each time you write data to the graph. There are some subVIs in the Picture Examples for determining the max and min using pretty much the same algorithm that LV uses. Or you can write the data to LV and immediately set the min to zero leaving autoscaling on. You might try this in a s ingle property node or in a tightly sequenced set of property nodes, possibly with panel updates turned off when doing it.