Thanks for Ben and Sean to help me solve the CPU problems. I tried
different ways. The symptom still exists. It was intermettent.
Occationally it might work fine.
I have the labview HMI as OPC client talking to Think&Do OPC server. I
have a main screen,which has a few buttons to lead to other screens
such as setup screen, control screen, maintenance screen. If I run the
main screen after the first time I load the program in, the setup
screen was able to run without a CPU problem, so was the maintenance
screen. Once I went to the control screen, the CPU went to 100%,
sometimes, it did not do it. Once the CPU was 100%, even I exit the
control screen, the CPU usage was still 100%, even I stopped the main
screen, and restart the main screen
again, the CPU would stay 100%.
I was skeptical about the memory alocation because sometimes it went
fine.
I will try to "comment out" the code to debug the program. Thanks.
Kimberly