Adnan,
Thanks for your reply.
Here comes another question. The attached is the new .vi file. I compiled it to an executable file. Because the .exe file runs automatically when it is opened, I put a RUN button and a STOP button to control running. However, the .exe file didn't do everything that the .vi file did.
In the .vi file, after the run button in the toolbar is clicked, the file won't run until the RUN button is clicked. The RUN button can be clicked again and again based on how many times we want to do measurement. The file won't stop until the STOP button is clicked.
When the .exe file is opened, the run button in the toolbar is already in the status of running. Since I put a RUN button there, the file actually won't run until the RUN button is clicked. However, if the RUN button is clicked for the second time, there is nothing happened. It is same for the STOP button. Both works well only for the first click.
I am not sure if I explained my question clearly. Because the size of the .exe file is too large, I couldn't attach it. Could you guess what's the possible reason?
Thank you again for your consistent help and support.
Qifu