取消
显示结果 
搜索替代 
您的意思是: 

One indicator and four inputs

已解决!
转到解答

Hello

 

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

Thank you

LABVIEW PROBLEM.jpg

0 项奖励
1 条消息(共 13 条)
2,540 次查看

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.

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 项奖励
2 条消息(共 13 条)
2,531 次查看

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

 qCapture.PNG

========================
=== Engineer Ambiguously ===
========================
0 项奖励
3 条消息(共 13 条)
2,528 次查看

Hello

 

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

0 项奖励
4 条消息(共 13 条)
2,523 次查看

@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 项奖励
5 条消息(共 13 条)
2,499 次查看

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 项奖励
6 条消息(共 13 条)
2,494 次查看

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 项奖励
7 条消息(共 13 条)
2,469 次查看

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

0 项奖励
8 条消息(共 13 条)
2,444 次查看

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 项奖励
9 条消息(共 13 条)
2,436 次查看

@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 项奖励
10 条消息(共 13 条)
2,434 次查看