LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Temperature simulation

Solved!
Go to solution

This is a homework problem yes, I have been going through the readings and I'm having trouble understanding how to do this.

We are able to use the simulated temperature in the activity folder, I'm not seeing where the thermometer is coming from and i want to conert the degrees at the moment (F) to degrees (C). I know the formula for that, but for the life of me I dont' know how I can hook it up.

0 Kudos
Message 1 of 27
(8,120 Views)

The temperature readings are coming from the "Demo Voltage Read" subVI. there is a hidden control for the values. The inputs to that VI are just dummy inputs.

0 Kudos
Message 2 of 27
(8,115 Views)

First, thank you for identifying your request as homework.

 

Is the "activity folder" part of the assignment? We have no idea what is in it.

 

The best way to get help is to show what you have tried, explain what does not work as you expect, and ask questions as specifically as possible.

 

What you are trying to do is very simple in LabVIEW.  If your class has not covered the LabVIEW basics, please work through the on-line tutorials on Getting Started with LabVIEW.

 

Lynn

0 Kudos
Message 3 of 27
(8,114 Views)

I successfully, converted to celcius but I'm having some problems. The problems say I need to hook it up to a waveform graph as well as the thermometer.

As you have said I have attempted to do it myself but I ran into problems. I hooked up a numeric indictor to make sure the formula is correct, but how can I make it so the thermoether uses those celcius temperatures? Also how can I wire up the waveform graph correctly, i seem to get a broken wire

 

the activity folder we only get the simulated demo temp from it, that's all

0 Kudos
Message 4 of 27
(8,109 Views)
Solution
Accepted by LABVIEW321

Suggestion 1. Always have the context help window open while programming.  If the window is open and you move the wiring tool over the broken wire, the help window will tell you something about the broken wire. In this case it will tell you that the source is a scalar and the sink (the graph) requires an array.

 

The fix will involve getting your data into an array.  I will let you think about ways to do that

 

Suggestion 2. Array indexes are integers. The coercion dot at the index input of the Index Array function tells you that LV is converting one datatype to another.  In this case you are probably OK, but you should always understand what a coercion is doing and be able to explain its consequences.  Better woudl be to use the appropriate datatype.

 

Suggestion 3. The note inside the while loop mentions calling a subVI.  This is also a clue to a means of dealing with the issue discussed in Suggestion 1.

 

Lynn

Message 5 of 27
(8,091 Views)

the sub vi seems hidden so im not sure how to go about doing this

 

I'm able to attach it to the waveform graph, i used the build array function and it seems to be plotting the celcius temp correctly.

Now the only problem is getting the celcius temp to display on the thermometer, however, with the subvi being hidden how can I rectifiy this situation

0 Kudos
Message 6 of 27
(8,085 Views)

There is no hidden subVI. The only thing that is hidden is the indicator. Double click the control. This will highlight the hidden indicator. While highlighted, move it with your cursor keys.

0 Kudos
Message 7 of 27
(8,072 Views)

oh i see, but im still confused how to make it use celsius instead of fahrenheit

0 Kudos
Message 8 of 27
(8,068 Views)

Subtract 32, multiply by 5/9.

0 Kudos
Message 9 of 27
(8,066 Views)

well i get that, but i mean on the thermometer, how do i hook it up

0 Kudos
Message 10 of 27
(8,058 Views)