12-13-2023 09:17 PM
@altenbach wrote:
I don't make mistakes (famous last words 😄 ) , but sometimes I don't provide a turnkey commercial grade solution to a simple "while loop" (sic) problem, which I solved. It is up to the user to sand the edges and polish things up as needed. I intentionally did not even attach a VI.
Messing with the chart history seems like pure Rube Goldberg compared to just change the Y scaling. 😄
It would be easier to plot both C and f then simply swap out the plot visible properties and autoscale the chart vertical axis. At the very least the scale min and max values should scale with the display unit K, C or f
12-14-2023 12:31 AM
Here's how I would code a chart that handles multiple units.
12-14-2023 09:22 AM - edited 12-14-2023 09:24 AM
As I said, here's how I would handle the Y scaling. No math needed! (I also never ever use units!)
Of course the Y axis should not be set to auto-scale as in the original code, especially if we are constantly hammering it with min and max properties. Sisyphean!
12-14-2023 05:30 PM
@altenbach wrote:
As I said, here's how I would handle the Y scaling. No math needed! (I also never ever use units!)
Of course the Y axis should not be set to auto-scale as in the original code, especially if we are constantly hammering it with min and max properties. Sisyphean!
I use units when it seems appropriate. Not only does it require no math, it doesn't even need multipliers and offsets.
12-14-2023 05:34 PM
Oh gee, I've been reading the title incorrectly this whole time. I thought it was "Problem with While Loop"; but it's really "Prolem with While Loop".
Might need to see a genetic engineer about that.