01-25-2018 11:04 AM
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
01-25-2018 01:00 PM
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…
02-01-2018 12:43 AM
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