From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-13-2022 01:57 PM
Hello
I have this problem...and the image shows my question...is posssible do that??
Thank you
Solved! Go to Solution.
12-13-2022 02:13 PM - edited 12-13-2022 02:16 PM
Answering your question directly... Use 3 local variable (right click -> create local variable).
BTW. You are probably asking the "wrong" question because local (global) variable are rarely the "right" answer.
12-13-2022 02:18 PM
Look at some of the free online tutorials, specifically For Loops.
12-13-2022 02:22 PM - edited 12-13-2022 02:24 PM
Hello
Thank you. Just to be clear, the random numbers are only to example , they are temperature measures in real world.
12-13-2022 02:39 PM
@marques51 wrote:
Hello
Thank you. Just to be clear, the random numbers are only to example , they are temperature measures in real world.
Well you should have asked a better question maybe?
Show us the code you have, explain what it is supposed to do, and tell us the part that is giving you trouble.
12-13-2022 02:43 PM
Hi marques,
@marques51 wrote:
Thank you. Just to be clear, the random numbers are only to example , they are temperature measures in real world.
Why do you want to show 4 temperatures in just one indicator?
HOW do you want to show 4 values within this one indicator?
Build a cluster from your 4 temperatures and show them on a gauge with 4 needles!
12-13-2022 02:49 PM
In your example I notice you have four "numbers" and four delay periods.
Again using a For Loop (auto indexing an Array) four different values get displayed at four different intervals.
12-13-2022 03:30 PM
Trusted Enthusiast I aprreciate your work, but is showing only the random number 4...(200 in your example)
12-13-2022 03:35 PM
Could you describe in words what you're trying to do?
For example, "I have four temperature measurements at different locations on a device, and would like to switch which temperature is indicated in the display once every second. Thus, you'd start with temperature sensor A's value displayed for 1 second, then sensor B for one second, then sensor C for one second, then D for one second, then back to A to repeat the cycle."
12-13-2022 03:39 PM - edited 12-13-2022 03:46 PM
@marques51 wrote:
Trusted Enthusiast I aprreciate your work, but is showing only the random number 4...(200 in your example)
Me?
The you did something wrong as the indicator should
But yeah when the program completes the indicator will be displaying the last number (200).
Put a While Loop around it to make it continuously cycle.
But honestly this is exactly why you should be posting your code and asking for help with the part you are having trouble with. As it's too easy to get off into the weeds with theoretical program fragments like this and confuse the issue even more.
Just look at the responses most of them are asking for more information.