to ensure code (any code) is going to execute in the order you want, you can use some error cluster to controll data flow, so you need your individual code in a subVI with error in and out. Another posibility is to use sequences, but most people will say they hide code, so you can use one sequence only, and pass dummy data from one to another to ensure data flow.
Hope this helps