LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Linear Temperature Ramp Program

I am taking as input the current temperature of the system and user input of a desired start temperature, end temperature, and ramp rate. If the input temp is below the desired start temperature I need it to go straight to the start temperature. Otherwise I need it to linearly ramp to the end temperature. I have been able to get the ramping kinda working using the ramp subvi but there are several issues with the setup currently. When ramping it will loop infinitly between the start temperature and the end temperature and I am unsure how to get it to stop after one loop. The other main issue is the graphs get paused and don't update while the ramping is occurring and this causes data to not be recorded as well. Attached is the labview program thus far. Thank you for any help.

0 Kudos
Message 1 of 11
(3,049 Views)

Your VI has disconnected code fragments all over the diagram and start running as soon as the user presses the run button, requiring all control settings to be made in edit mode. Not user friendly!

 

I would recommend to rearchitect this into a clean state machine.

 

No you don't even need the inner FOR loop. You definitely don't need a formula node to calculate a high order polynomial. There is a simple tool that accepts x and an array of polynomial coefficients. That's all you need!

 

Sorry, I don't have drivers installed, so I cannot look at your assistant configuration.

0 Kudos
Message 2 of 11
(3,029 Views)

@altenbach wrote:

You definitely don't need a formula node to calculate a high order polynomial.


Hmmm....

 

altenbach_0-1646417529100.png

 

0 Kudos
Message 3 of 11
(3,024 Views)

I do not see any type of I/O. Is this theoretical practice or a homework assignment? 

 

Every thermal chamber I have used had a built in controller. So programming a ramp is as simple as sending the controller start temperature, end temperature, and ramp rate in degrees per minute.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 11
(3,014 Views)

@RTSLVU wrote:

I do not see any type of I/O. Is this theoretical practice or a homework assignment? 


There is a DAQ assistant read in the outer loop and a DAQ assistant write in the inner loop.

0 Kudos
Message 5 of 11
(3,007 Views)

Hmmm, too…

 

Do you really need a 10th order polynomial for conversion from voltage to temperature value?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 11
(3,006 Views)

@GerdW wrote:

Hmmm, too…

 

Do you really need a 10th order polynomial for conversion from voltage to temperature value?


I was really wondering about that too and assumed that might have been blindly taken from a calibration sheet included with the sensor. 😄

 

Assuming +/- 10V, it is good from absolute zero (actually -3 TeraDegrees) to +8 TeraDegrees!) 😮

 

altenbach_0-1646421525124.png

 

0 Kudos
Message 7 of 11
(2,997 Views)

Thank you I have implemented this change. I am new to labview and saw a chance to type something rather than implement it through block code and took it as I normally to text based programming. Although I am quickly learning this is not how you should go about coding in labview.

0 Kudos
Message 8 of 11
(2,916 Views)

I am an undergrad student working in a professors lab. He basically handed me a program three other students have been working on in the past and told me to learn labview and make it linearly ramp.

0 Kudos
Message 9 of 11
(2,915 Views)

I have been trying to figure out how to increment through an array without using the inner for loop. I am currently reading about state machines in labview as per your recommendation. How would one go about doing this?

0 Kudos
Message 10 of 11
(2,911 Views)