So my original program was a simulation of the ideal gas law; users could set the number of molecules in the container, the size of the container and the temperature to see how it affected pressure. The updated program that I am currently working on is designed to automatically test a set of values for volume, temperature, and number of molecules and record those along with the pressure in a list object. I'm using a for loop to change the variables each time, then record the pressure and reset the container for the next iteration of the loop.
The problem I'm having though is that upon the start of the program the loop is automatically executed, so while the values for molecules, temperature and volume are correct, pressure is displayed as zero for each one. If I set the loop to wait between each iteration, then the pressure is tested and recorded correctly, but temperature, molecules and volume all stay at one each time.
tl;dr - A loop starting with a wait command doesn't set variables to desired values on each iteration, how can I make it so the values update?
Here is the link to my google drive folder with the capx files for both the original and revised programs