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: 

case structure with integer selector

How can I put a case structure with an integer selector on the block diagram?  It seems there is no
way to change a case structure with boolean selector to an integer one.  Any suggestions?
0 Kudos
Message 1 of 4
(13,010 Views)
 

Just wire an integer to the selector terminal. It will adapt automatically 🙂

Message 2 of 4
(13,008 Views)
You can then use different syntaxes to set the cases.
Some examples :

  • 1..10 --> 1 to 10
  • -1,5,7 --> -1,5 and 7
  • ..5 --> values less or equal to 5 --> 0 to 5 for an unsigned integer and -Inf to 5 for a signed integer
  • 5.. --> values greater or equal to 5
  • 25, Default --> 25 and all values that are not set in the other cases

Search the LV help for "case structure".
Message 3 of 4
(12,988 Views)
On Nov 15, 3:10 am, WeiC <x...@no.email> wrote:
> How can I put a case structure with an integer selector on the block diagram?&nbsp; It seems there is no
> way to change a case structure with boolean selector to an integer one.&nbsp; Any suggestions?

just wire a integer control to the selector structure. It changed to
integer. After that you can add more cases and modify then......
0 Kudos
Message 4 of 4
(12,914 Views)