04-10-2017 07:21 PM
Hello, i am trying to figure out how to make my string output to the front panel. I believe that i wired it correctly, but it still refuses to output anything. Basicly i have to have it output freezing if it is below 32; no warning if it is between 32 and 75(inclusive); high temperature if it is between 75 and 100; and heatstroke if it is over 100. I have uploaded what i have done below. I am not sure what i am doing wrong. Also there should be a boolean led light, that switch on if there is any of the warnings except no warning. Thanks in advance!!!
Solved! Go to Solution.
04-10-2017 07:44 PM
First, run block diagram cleanup to clean up your wiring. Some of it is running backwards and makes it hard to debug the picture of your code. Typically it is very hard to debug pictures and would be much better if you posted the actual VI.
Second, it might be because of the unclear wiring, but it sure looks like you have nothing coming out of the outputs of all those Select Functions.
Third, Check your spelling. The word is "Temperature".
Forth, the lower bit of code with greater than, less than, and AND could be replaced by an In Range and Coerce Function.
04-10-2017 07:57 PM
Thank you for the quick reply.I cleaned up the block diagram and added the In Range and Coerce Function, (however there is some issue with that) like you suggested. I have also uploaded the VI like you requested.
04-10-2017 10:50 PM
It appears you know very little about LabVIEW. Before working on this VI of yours, spend an hour or so with the beginning LabVIEW Tutorial material shown as links on the first page of this Forum.
Bob Schor
04-10-2017 10:59 PM - edited 04-10-2017 11:04 PM
Sure enough the outputs of all those select functions aren't wired to anything. Why make a decision if you don't use the result?
In Range and Coerce. Open Context Help and read the function. There is an output that tells you if it is in range.
Your warning control should be an indicator.
Normally, I'd tell you in more detail what needs to be done and have you do the work yourself. Instead, I'm going to show you the picture of what the code should look like.
04-11-2017 12:37 AM
Instead of all these successive comparisons, it would be simpler to threshold into an array of temperatures and then index into an array of strings. The boolean could be obtained from the index value (e.g. ">3" or whatever).
Start with this example and modify as described above. (e.g. make the second array an array of strings)
04-11-2017 07:53 AM - edited 04-11-2017 07:53 AM
@altenbach wrote:
Start with this example and modify as described above. (e.g. make the second array an array of strings)
Here's a quick draft to get you some ideas...
04-11-2017 08:16 AM
Or just use a text ring.
04-11-2017 11:10 AM
@paul_cardinale wrote:
Or just use a text ring.
Have you tried that?
(I guess it should work after the thresholding/round down step. It definitely does not work on the original number with the steps defined as non-sequential values and the ring as DBL)