LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you use the value from a numeric indicator in a numeric control?

Solved!
Go to solution

OK, here's a quick draft how to calculate the max encountered so far.

 

Maybe it can give you some ideas. Just run it and see....

Message 11 of 18
(1,408 Views)

Wow!!! That helped! But I have two small problems. It is calculating the %amplitude while going up, that is from 0 to 10, 10->50, etc. But when I try to go reverse, it's not working. What could be the problem? Also, it's taking some time to remain constant at one value. That might not be a big problem, though!

Thank you so much! Smiley Happy

0 Kudos
Message 12 of 18
(1,382 Views)

I don't understand what you mean by "go reverse".

0 Kudos
Message 13 of 18
(1,374 Views)
Solution
Accepted by topic author A BME

OK, I think I know what you mean. If the amplitdue is declining, the max will never go down. because it is at the max of all values since program start.

 

Here's a quick draft on how you would take the max of the last 10 measurements. Is that what you want?

Message 14 of 18
(1,366 Views)

It is absolutely what I want! Smiley Very Happy Thank you so much! I was racking my brains for this one since september! Thanks a lot!

0 Kudos
Message 15 of 18
(1,348 Views)

Oh, by the way, how do you get to use a numeric indicator as a control? Someone here said it is possible, is there a way it could be done? I'm just curious....

0 Kudos
Message 16 of 18
(1,346 Views)

@A BME wrote:

Oh, by the way, how do you get to use a numeric indicator as a control? Someone here said it is possible, is there a way it could be done? I'm just curious....


You can't.  Indicators can only display data.  They can't be acted on like a control.

 

If you want to read data from an indicator, then make a local variable of it and set it to Read mode.

0 Kudos
Message 17 of 18
(1,343 Views)

That helped!! The whole  thread started with that question and I ended up getting the solution to my problem. Thank you! 🙂

0 Kudos
Message 18 of 18
(1,338 Views)