LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tunnels on labview

Solved!
Go to solution

Thank you for your reply.  still getting error on displaying the fourth number . this is my attempt 

0 Kudos
Message 11 of 13
(310 Views)

Hi jiji,

 


@jiji_830 wrote:
  • A Numeric Indicator to display the 5th Random Number Generated

  • Place an array indicator to show the array of random numbers.
  • Show just one element of the array.
  • Set the index to show the 5th element.
  • Hide the array index.

Finished…

 

On your VI:

  • Why do you set the condition of the conditional tunnel to TRUE? (When the condition is always TRUE, then there's no need for a conditional tunnel…)
  • Why don't you use the comparison result of "i" with 4 as condition?
  • You still get an array output after the conditional tunnel so you still need IndexArray to show a scalar result. It would be much easier to use the same IndexArray function to pick the 5th element from the array of the default indexing tunnel…
Best regards,
GerdW


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

If you want a scalar, the conditional tunnel cannot be set to indexing.

The condition belongs at the conditional terminal (bottom!) and the number at the "last value" tunnel. ( you get the last value where the condition was true, i.e. i=4)

 

 

altenbach_0-1634322378296.png

 

0 Kudos
Message 13 of 13
(302 Views)