10-23-2007 01:45 PM
10-23-2007 02:04 PM
10-23-2007 02:51 PM
I'll let Christian handle the LabVIEW related performance issues.
DSC comes with Trending and historical logging.
The history files should be archieved occationally to prevent the DSC tool from trying to take all of the reading "from the begining of time" into concideration when it operates.
The frequency of the archieve operations depends on many factors including the deadband setting for the tag in the Tag Configuration.
If I remember correctly (long time) the archieving can be done from MAX.
Ben
10-23-2007 02:55 PM
Ben:
Would you say that archieving of data is necessary, even if I am specifing the time interval on the read traces vi and capping the max points per trend line?
10-23-2007 03:05 PM
Yes!
I have seen the historical trend viewer crash all of LV when just trying to open the trend.
But I should ask the "dumb question" first.
Since this is a DSC app and DSC apps generally run for long periods*, did you try rebooting the machine?
Ben
* One of my customers reported their machine was stating to run slow. I asked them when was the last time it was re-booted. They said "18 months ago." ![]()
10-23-2007 03:10 PM
10-24-2007 07:29 AM
All:
Many thanks for the help to date. I have re-booted the computer and actually left it shutdown for 30 minutes. Archieving the data helped, as did introducing some wait for next millisecond logic in the for loops associated with trending. Still, I am not where I need to be in order to minimize the program slowness, related to trending; and properly run the PID loops. My CPU usage now runs between 20-60% and blips up to 100% occasionally, compared with a solid 100% before implementing your suggestions. My screen display and PID values update about every 3 seconds, compared with 10 seconds before implementing your suggestions. Attached is the program. The DSC trending is in frame 7. Please feel free to offer any advice. This is a legacy program, which I inherited about a year ago. My LabView skills are intermediate.
10-24-2007 09:07 AM - edited 10-24-2007 09:07 AM
Message Edited by altenbach on 10-24-2007 07:08 AM
10-24-2007 09:28 AM
I think this thread is going to be a great KB regarding LV code development. ![]()
Thanks in advance for all the teachers. ![]()
10-24-2007 10:55 AM