Hi Vr6Fidelity,
I'm guessing you have the base package of LabVIEW that doesn't include event structures. The next best way to do this would probably be using a case structure to only stop, reset the rate, and start the task when you click on a boolean button. This means that your task isn't stopping, setting the rate, and starting every iteration of the loop and only when you specifically want the rate changed. The reason I had the sample clock rate set outside the loop is because I want to start the task at a specific rate and keep it going at that specific rate until the user selects that he wants to change the rate. This means that I won't be changing the rate every iteration of the loop. The property node is simply changing the specifications of the task that have been already created outside the loop. Once inside the loop, it will only change the task property when selected to do so by the boolean switch. In addition, I have changed the mechanical action of the switch on the front panel to be latch when pressed. This will make it so when you click the button it will only change the rate once and the switch will go back unclicked. So, when you click the button, the true case of the case structure will only execute for one iteration of the while loop.
I hope this helps,
Paul C.