Dear All,
attached is an NI that does the following.
1. The user inputs a frequency and amplitude range to drive a speaker.
2. A laser displacement sensor measure the speaker displacement, checks if it is in the desired range, and jumps on to the next frequency, if its not in the desired range it tries another drive voltage.
The program works fine, the problem is, is that the while loop checks the condition in the beginning or the middle of the loop, therefore if it is in range instead of stoping at that particular amplitude and frequency, it goes to the next amplitdue before going to the next frequency. Since at the begining of the loop execution the condition was different that in the middle.
How can I force the while loop to read the condition only after the sequence inside has completed.
Thank you
Ala