LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prolem with While Loop

Solved!
Go to solution

@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


"Should be" isn't "Is" -Jay
0 Kudos
Message 11 of 15
(743 Views)
Solution
Accepted by topic author WasiqSaleem1122

Here's how I would code a chart that handles multiple units.

Temp Cht C F.png

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 12 of 15
(732 Views)

As I said, here's how I would handle the Y scaling. No math needed! (I also never ever use units!)

 

altenbach_0-1702567069530.png

 

 

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!

 

Message 13 of 15
(685 Views)

@altenbach wrote:

As I said, here's how I would handle the Y scaling. No math needed! (I also never ever use units!)

 

altenbach_0-1702567069530.png

 

 

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.

0 Kudos
Message 14 of 15
(661 Views)

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.

0 Kudos
Message 15 of 15
(659 Views)