08-08-2005 12:05 PM
08-08-2005 12:21 PM
Hi Baris,
4 thermocouples should not be loading the CPU that much.
Are you using a while loop? Or some sort of WAIT function? Soemthing is loading the CPU and I doubt that it is the thermocouples.
Can you should part (or all) of the main loop? Even a screencapture...
How often do you read the temperature? How often do you need to measure (resolution / sample rate)?
JLV
08-08-2005 03:29 PM
08-08-2005 03:56 PM
08-08-2005 04:21 PM
I can see several potential problems. Although I wouldn't expect any of these to display any problem if your wait is more than 100 ms.
Express VIs are claimed to work slower. I think most professional LV programmers don't use them, so I don't know. You can convert the VI by right clicking it and opening its FP.
File operations can be problematic on occasion. Constantly writing to the disk may be the problem. Try having to file operations out of the loop or less frequently.
Updating the screen can be a real CPU hogger, usually if you have overlapping objects. In your case, there are none, so it doesn't look like this should be the problem.
In any case, I don't think any of these should be a problem even when you get to really high speeds, but I suggest you try the first 2.
08-08-2005 04:36 PM
08-09-2005 10:37 AM
I know this is off-topic, but I think tst brought up an interesting subject. I don't use Express vi's, either. I tried them once and found that the performance what not there, and decided to stay away from them. The decision to stay away was based on the fact that it was faster for me to implement vi's using the classical method rather than using Express vi's. However, my friend insists on using the Express method and he is happy with the performance.
Performance and use of Express VI's could be a topic for a new thread.. 😉
JLV
08-09-2005 10:43 AM