05-11-2017 04:22 AM
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?
Solved! Go to Solution.
05-11-2017 04:35 AM - edited 05-11-2017 04:40 AM
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
05-11-2017 04:40 AM
05-11-2017 04:45 AM
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.
05-11-2017 04:55 AM - edited 05-11-2017 04:58 AM
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
05-11-2017
04:56 AM
- last edited on
05-21-2024
07:49 PM
by
Content Cleaner
Can you explain bit more clearly and post code?
-In the mean time you can Start with below links to learn about LabVIEW programming
LabVIEW Graphical Programming Course
05-11-2017 05:48 AM
Here is my problem. I can't get my output if i use array.
05-11-2017 06:00 AM - edited 05-11-2017 06:03 AM
plz add some data,
fill your controls and then "Edit -> Make Current Values Default"
and then post again
by the way ... x*1 = x
05-11-2017
06:01 AM
- last edited on
05-21-2024
07:49 PM
by
Content Cleaner
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: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PAghSAG&l=en-US
05-11-2017 06:44 AM
Sorry, already make current values default.
It should have some values in the first three outputs but all zeros.