Test 1

Question 1

By now you should know enough LabVIEW to perform a fairly rudimentary operation. I am writing this in pseudocode so you should be able to follow. This may seem hard or dumb to you, but it contains the basics I have covered in these previous sections, and give you an idea of how to convert thought to what to do. Also you will probably use these techniques in many data analysis applications.
First INITALIZE a 1-D array with 5 elements of zero
WHILE the END OF FILE has NOT been reached

Enter a STRING with the following message: "The result of this silly program is"
Convert final 1-D array to a string tab delimited to one decimal place
Combine the strings with a tab separating them, and save as myfile.txt on the desktop.

The data file you will need is here. Simply copy it into a notepad and save it as a text file.

The way I did it is only one way, there are much harder ways and probably some simplier ways. If you have no idea what is going on, I would really appreciate you E-mailing me, so I can help resolve the problem.

Your results should look like this:

The result of this silly program is	20.0	-27.0	0.0	-1.0	0.0


Question 2

Here is a good thought and real life problem
You are building a refrigerator and need to keep the temperature between 35oF and 40oF. Now to economize, you want the compressor to start if the temp is above 35oF, then stop and only start again when the temperature has reached 40oF and continue until ir reaches 35o, and so on until you tell it to stop. Here is a graph to illustrate the idea.

Temp vs. Time Graph
Perhaps in real life the graph wouldn't be so sinusodial, but I just wanted to illustrate what I was saying.
Your job is to build a VI that will read the temperature and tell the compressor when to go on or off. Now since you haven't done the data acquisition and control section yet, and probably don't have a thermistor or compressor avaliable, you just have to use a manual control and display. That is enter the temperatures manually and create a boolean indicator to represent on/off compressor.

Programming tips:

***CHALLENGE***
If you are taking or have taken a class in thermodynamics, make a model based on the properties of the refrigerator, outdoor temperature, and other variables to simulate a real refrigeration system.

If you are totally lost here are the answers in the all zipped away in this file.
Back
This should cheer you up