LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Temperature controling software

Solved!
Go to solution

I tried to change the gains described in the ziegler-nichols methode as you suggested but stay with labviews standard values and a tik rate of 50 ms of the while loop. This worked best, scoring a 0,2 °C to 0,3°C drift at most 😄

 

Last question i have is the following: i made 2 custom errors, telling if a device is not connected. the one in the tcx vi works, informs the user and ends the program. But the one of the infraredsensor doesnt stop the program, instead it still enters the while loop and troughs a visa error (error says it originated in temperatureread.vi but that should never be entered) after i manualy end the program. In the compiled exe this is! In Labview debugging i followed the error through my program and it should work. 

 

ps: anything else i should urgendly improve?

 

Yours Michael

0 Kudos
Message 11 of 13
(870 Views)

Hi Michael,

 

on your error handling:

- in the init subVIs you only check for certain conditions but not for errors on the error line… What happens when the COM port is blocked or the ActiveX part is missing?

- did you debug your VI using probes? Which error value does the while loop receive on the error line?

- in the loop you could wire the CTX method calls in series instead of parallel…

- you can wire the error wire directly to the OR function, no need to unbundle the error status…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 13
(866 Views)

I changed the errorhandling so that all errors are passed through an made my own for devices not connected.

 

Thanls again for your help Gerd!

Everything works now 

0 Kudos
Message 13 of 13
(826 Views)