Hi krispiekream,
at the moment I can't save back to LV7, so all I can do is giving some textual comments:
- at "delay to stabalize system"/"measure tempearature" you write the temp to the cluster, but then you don't use that changed cluster and so "forget" about this change...
- you write to "error out" locals 22 times! But then at the end of your program you write to the terminal after those file functions and all the previous error states are lost... (typical race condition)
- when using "index array" with index=0 you don't need to wire a zero constant; when indexing consecutive elements you only need to wire the first index
- enable "auto grow" on all structures to avoid hiding block diagram elements... Use left-to-right wiring when other people should analyze your code!
- use compound arithmetic instead of all those NOT/AND instructions...
- use matching datatypes for indicators to avoid coercion (unless there's a reason to do so)
- at the right side of the big (light green?) loop there a construct of "index array(array size)" - this will fail every time as the last element of an array of size n has the index n-1!
- you can use the case selector as an input to the case structure: you can avoid a lot of (TRUE) constants this way
- make (more) subvis as the block diagram is way to big to get an overview
- in the init while loop (yellow colored) you have a case structure having only 
one case "0, default" - what is it good for? (Rube-Goldberg code)
Well, now it's getting late and I need to recover for the next day
					
				
			
			
				
	Best regards,
GerdW

 
 using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019