11-27-2012 12:19 PM
I have a 1D array and I want to split what happens with different values
I made it so that the array outputs an element, with a scroll bar to change the element
The array is random
When the element is < 512 I want A to happen
When the element is > 512 I want B to happen
I've played around with case structure but what confuses me is the less than and greater than fucntion, it's output is a boolean
If it changes anything I am connectiong the the output to a multiply functino
Thanks!
Solved! Go to Solution.
11-27-2012 12:39 PM
Pick one. If the value is less than 512, then the boolean is True. Put the code for A into the true case. Otherwise it is false, put the code for B in the false case.
One thing you don't say is what to do if the value equals 512. Do you want A or B?
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
11-27-2012 12:43 PM
I don't understand what your problem is. Wire the boolean output of the comparison to the selector tunnel of the case structure. It sounds like you also need to wire the original number into the case structure as well (using another tunnel).
11-27-2012 04:21 PM
@sofiakyle wrote:
I have a 1D array and I want to split what happens with different values
I made it so that the array outputs an element, with a scroll bar to change the element
The array is random
When the element is < 512 I want A to happen
When the element is > 512 I want B to happen
I've played around with case structure but what confuses me is the less than and greater than fucntion, it's output is a boolean
If it changes anything I am connectiong the the output to a multiply functino
Thanks!
I would recommend classes or getting some books on LabVIEW to study. A basic question like this indicates you haven't yet been able to make the transition from text-based language to LabVIEW with any confidence. It took me a while to be comfortable with it, so I feel your pain. 🙂
11-27-2012 04:47 PM
Here we go off to rube goldberg land again.
Why is there a comparision function at all ? !!!!!
11-27-2012 05:06 PM
Yeah... I got assigned this bit in a group project, so I have to try to learn all this stuff quickly, never to use it again
11-27-2012 07:17 PM
@JÞB wrote:
Here we go off to rube goldberg land again.
Why is there a comparision function at all ? !!!!!
It wasn't clear whether the original poster was dealing with integers or floating point numbers. A direct wiring of the value to the case structure may not work properly for floating point numbers.
11-27-2012 10:39 PM