09-01-2019 06:04 AM
I have 10 control variables and several tanks. I need to measure the largest among these 10 variables, and the largest would activate a certain tank.
For example, if I have variables "1,2,3,4": first I want to check which is the largest, 4 is the largest, so I need a tank which has a reference or a link to the variable 4 to start incriminating.
Anyone could help me in that, please?
09-01-2019 06:29 AM
Use "Array Max & Min". It will return for you the largest value and the index it was found at. You can use that index with a lookup table for you tanks.
09-01-2019 11:28 AM
Please spend a little time with the LabVIEW Tutorials listed on the first page of this Forum. As you learn simple LabVIEW concepts, try to duplicate the diagrams shown and run the code to "see what it does" and get familiar with how LabVIEW works (it is NOT like C or MatLab!). Once you have a little understanding, you'll be better able to pose your question so it makes "LabVIEW Sense" (and maybe you'll even realize how to solve it, yourself).
Bob Schor
09-01-2019 01:06 PM - edited 09-01-2019 01:08 PM
@ghinak wrote:
I have 10 control variables and several tanks
The term "variable" is not very well defined in LabVIEW. Can you show us some code so we can figure out what you are actually describing? Similar ambiguities exist with terms such as "link" and "reference".
I assume that the tank size is fixed. Are you talking about the liquid level? (I assume these are not military tanks).
What is "incriminating" in this context?