03-04-2022 09:42 AM
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.
03-04-2022 12:04 PM - edited 03-04-2022 12:04 PM
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.
03-04-2022 12:12 PM
@altenbach wrote:
You definitely don't need a formula node to calculate a high order polynomial.
Hmmm....
03-04-2022 12:32 PM
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.
03-04-2022 12:44 PM
@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.
03-04-2022 12:49 PM
03-04-2022 01:12 PM - edited 03-04-2022 01:18 PM
@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!) 😮
03-07-2022 09:25 AM
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.
03-07-2022 09:26 AM
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.
03-07-2022 09:27 AM - edited 03-07-2022 09:28 AM
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?