LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Case Structure Input Tunnel

Solved!
Go to solution

In my project, I have to use arrays to input my data.
However, when connecting the array to case structure, it can only perform the true/false condition but not string and constant conditions.

How can i solve it?Capture.PNG

0 Kudos
Message 1 of 14
(3,528 Views)

not sure what your problem is, code looks (cleanable) but correct (as in should run)

 

 might be that your arrays have different lenght on the second forloop?

the loop should only execute as often as length of the smaller array


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 2 of 14
(3,518 Views)
Enable Highlight Execution and debug, if not sharing the code.
Thanks
uday
0 Kudos
Message 3 of 14
(3,512 Views)

In my diagram, I connected one of the arrays to a case structure for true/false condition and another one is for string condition. When I run my program, there is no output from the case structure that perform string condition. My friend told me that arrays can only perform true/false condition in case structure. 

0 Kudos
Message 4 of 14
(3,507 Views)

read up on the help (CTRL+h) of the case structure,

your frind is wrong

 

EDIT: i mean you cant connect an array directly, but for elements its wrong


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 5 of 14
(3,496 Views)

Can you explain bit more clearly and post code?
-In the mean time you can Start with below links to learn about LabVIEW programming 

NI Learning Center

NI Getting Started

LabVEW Basics

3 Hour LabVIEW Introduction

6 Hour LabVIEW Introduction

LabVIEW Graphical Programming Course

Using the Context Help Window

LabVIEW Inbuilt Examples

Thanks
uday
0 Kudos
Message 6 of 14
(3,495 Views)

Here is my problem. I can't get my output if i use array.

0 Kudos
Message 7 of 14
(3,471 Views)

plz add some data,

fill your controls and then "Edit -> Make Current Values Default"

and then post again

 

by the way ... x*1 = x


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
Message 8 of 14
(3,462 Views)
Solution
Accepted by topic author hqoster123
There is no data in your arrays, how we are supposed to run and check?
-Populate the data to the controls and then make them as Data Operations-> Make current Values as Default and then upload the VI.
-You have used auto indexing with three arrays, and minimum size of those array determines the iteration for for loop. Read: http://digital.ni.com/public.nsf/allkb/B85025233861378A86256CE700491E34
Thanks
uday
Message 9 of 14
(3,461 Views)

Sorry, already make current values default.

 

It should have some values in the first three outputs but all zeros.

0 Kudos
Message 10 of 14
(3,444 Views)