LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Some help with creating a new string output

Hello. my current vi outputs a code based off a random current temperature, and puts it into one of these four groups, freezing, no warning, high temp, and heatstroke. What im trying to do now is, if the same string output is generated three times, then i want it to output a new string. 

 

(ie. 3 freezing's iterations will output "sever freezing, 3 high temp iterations will output "sever high temp, 3 heatstroke iterations will output "sever heatstroke.) 

 

I currently have used a while loop to get the numerous iterations, and shift registers to save the values, however im an unsure as to how to go about wiring it so that it does the new display. The Vi is attached.

Any help would be appreciated. Thank You.

0 Kudos
Message 1 of 2
(2,557 Views)

This is at least the third post you've made for the same problem.  Each time, we've answered some elementary questions that you should have been able to figure out by (a) spending time with the Getting Started with LabVIEW tutorials provided at the first page of this Forum, (b) reading the Help available within LabVIEW itself, both for individual Functions and under LabVIEW Help, Contents, topics under Fundamentals, and (c) doing some testing, yourself, by writing tiny test routines to test code and functions you might not understand.

 

Your problem is slightly ill-posed.  You describe what you want to happen when the three last outputs are the same, but say nothing about what you want to happen when they are not the same.

 

Here is a question -- what LabVIEW structure allows you to distinguish between one situation ("three last outputs are the same") and its converse ("three last outputs are not the same")?  Where do you have access to the "last three outputs"?  How would you test the truth (or falsity) of "three last outputs are the same"?

 

If you cannot answer these questions, and (having answered them) have no idea how to implement them using LabVIEW, go back to the tutorials and spend more time there.  If you are taking a LabVIEW class, go talk to your instructor.

 

Bob Schor

0 Kudos
Message 2 of 2
(2,513 Views)