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: 

condition statement help

Can anyone help me on this condition statement?
I need to create a condition statement where every 1 - 48 count is case 1 and every 49-50 count is case 2.   The counter will keep counting until 1000.
 
example
Case 1:  1-48, 51-98, 101-148, 151-198, and so on.
 
Case 2: 49-50, 99-100, 149-150, 199-200, and so on.
0 Kudos
Message 1 of 3
(2,538 Views)

Hi,

Do as in attached VI

type '1..98' to represent range

use multiple ranges seperated by comma in case 1
 
put those values 49,50,99,100 in case 2
 
regards
Dev
 

Message Edited by devchander on 12-21-2005 01:15 AM

Message 2 of 3
(2,536 Views)
Repetitive patters are easily solved using the reaminder of "Quotient&Remainder". See attached example.
Message 3 of 3
(2,529 Views)