ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need help

 I need a make a program that explores the one-dimensional numeric table and counts the number of values in the table two controls to the range of

0 Kudos
Message 1 of 11
(5,513 Views)

So if i understand ik correctly you need to loop true a 1D array with numbers and count the values that are in range of a set of values givin by an input.

 

I think you need to check the "In Range and Coerce" function from the compare pallet in a autoindexed for loop.


Learning LabVIEW since January 2013
0 Kudos
Message 2 of 11
(5,505 Views)

I use while loop box and case structure box...

0 Kudos
Message 3 of 11
(5,497 Views)

try to share your code. it will help us solving the problem. 


Learning LabVIEW since January 2013
0 Kudos
Message 4 of 11
(5,493 Views)

There is what i have done allready.

Download All
0 Kudos
Message 5 of 11
(5,487 Views)

Hi temes,

 

you need to check your comparison functions: right now both try to compare for the upper limit...

 

Btw you can achieve the same without a loop:

check.png

When your arrays are large (more than 32767 elements) you should convert the output of the "?1:0" function to I32...

Best regards,
GerdW


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

How can I do this by using loop? Like I have start to doing!

0 Kudos
Message 7 of 11
(5,414 Views)

Hi temes,

 

you can do it just like you have shown in your pics - except for the wrong comparison as I told you before...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(5,410 Views)

Can You do and put a picture for that? I can't do this right.

0 Kudos
Message 9 of 11
(5,404 Views)

Hi temes,

 

you're not able to debug your own VI? Really? Even after getting told what's wrong??? Come on...

 

Spoiler
check.png

 

 

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 11
(5,395 Views)