01-03-2006 02:05 AM
01-03-2006 03:19 AM
01-03-2006 04:32 AM
hi, Lul,
Thanks a lot for ur advice.
I'm doing what u said, see can find any thing wrong or not.
in the mean time of program running,thank you first:)
Regrads
Oahcchao
01-04-2006 10:40 AM
Hi Oahcchao,
When using a while loop in LabVIEW without any wait time, LabVIEW will run as fast as possible causing the CPU ussage to be 100%. Most of the time this is not a problem. It is just LabVIEW taking advantage of all unused resources. Here is a KnowledgeBase entry that describes this in more detail:
http://digital.ni.com/public.nsf/websearch/8638139D6236D42086256A340073554A?OpenDocument
I noticed in your original VI (ver 6) that you have wait time placed in the sequence structure but not in the while loop. Try placing a Wait function with a 1 wired to it in the while loop as well. You should be able to do this with your version 6.
01-05-2006 11:31 PM
hi, Michael,
Thanks a lot for your advice. and sorry for replying u so late, because this project is in a hurry and i just ran the program over night.
Now the CPU usage problem is solved, and i can make sure the loop time is correct -- i used stop-watch to check every cycle time.
but the DAQ graph is still the same, looks like cycle time is becoming shorter and shorter. I think there are some problems with my DAQ program, but i cannnot find what's wrong.
The attached file is my DAQ program, can anyone point out what's wrong with my XY-Graph?
and how to use the running time as x-axis, i mean, it starts from 00:00, and after one second, it will ends at 00:01, something like this, i tried the "relative time" in the properities of XY-Graph, but it not works.
Thanks again for the help from all of you guys. Really.
Regrads
Oahcchao
01-09-2006 10:45 AM
01-12-2006 01:00 AM