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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

One indicator and four inputs

Solved!
Go to solution

Hello

 

I have this problem...and the image shows my question...is posssible do that?? 

Thank you

LABVIEW PROBLEM.jpg

0 Kudos
Message 1 of 13
(1,461 Views)

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.

---------------------------------------------
Certified LabVIEW Developer (CLD)
There are two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 2 of 13
(1,452 Views)

Look at some of the free online tutorials, specifically For Loops.

 qCapture.PNG

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 13
(1,449 Views)

Hello

 

Thank you. Just to be clear, the random numbers are only to example , they are temperature measures in real world.

0 Kudos
Message 4 of 13
(1,444 Views)

@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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 5 of 13
(1,420 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(1,415 Views)

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.

qCapture.PNG

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 13
(1,390 Views)

Trusted Enthusiast I aprreciate your work, but is showing only the random number 4...(200 in your example)

0 Kudos
Message 8 of 13
(1,365 Views)

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."

 

 

0 Kudos
Message 9 of 13
(1,357 Views)

@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

  1. Display 10
  2. Wait 500mS
  3. Display 50
  4. Wait 1000mS
  5. Display 100
  6. Wait 500mS
  7. Display 200
  8. Wait 1000mS
  9. End

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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 10 of 13
(1,355 Views)