LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

the problem running

Hello Everyone.When I run the application program in a computer ,the speed of the computer turn to slowly,

or the computer turn to died,why it comes to the problem? How can I solve the problem?

Thanks in advance.
0 Kudos
Message 1 of 14
(3,557 Views)
hi liying,
this is far too broad a description for anyone to help with any certainty. Can you please provide a sample of your code or explain what you are doing in your application, as well as the type of operating system specs and software version.

Message Edited by DavidT on 05-25-2005 01:14 PM

0 Kudos
Message 2 of 14
(3,549 Views)
Hello DavidT.
In my application, I do the program which can realize the function of display of Temperiture and Rain,
In the application, it can show the data about the temperiture and the rain ,in the front panel ,there are two controls show the data ,and as well as the program can creat the file once an hour in the computer .

I use the the type of operating system 2000,and the software Labview6.1.

If use the pragram which creat by the Labview for a long time,could it creat the died loop?

Thanks.
0 Kudos
Message 3 of 14
(3,544 Views)
hi liying,
how are you aquiring the data and displaying it? Are you using arrays or single point displays?
Are you closing all references (eg when opening/saving/closing data file)?
There is no reason why you application should lock up after long periods of operation. Can you post your code to see if there are any obvious problems.
0 Kudos
Message 4 of 14
(3,540 Views)
Is the application sluggish from the beginning, or does it get worse the longer the program runs.

If it happens right away, it could be that you are hogging all CPU, for example with a few loops that don't contain any wait statements. Also make sure to run under normal proirity. If you set the VI to time-critical, some system services might suffer, e.g. even simple mouse movements.

If it gets worse with time, it could be a memory allocation issue. Do your data arrays grow without limits (e.g. by using "build array" inside a loop with the array stored in shift registers (or even worse, local variables).

Feel free to attach your VI so we can have a critical look at it. ;).
0 Kudos
Message 5 of 14
(3,540 Views)
Hello everyboday.

Thanks for your help in advance.yesterday I run the application for a whole day,but after running a long time,

it takes up 100%CPU,and almost whole ram .can not open any other applications.

The next is my program ,please read it.

please read it use Labview7.1.
0 Kudos
Message 6 of 14
(3,517 Views)
I don't see any obvious problems so far. Could you also attach FCS-For.vi?

Have you tried to do some profiling?
0 Kudos
Message 7 of 14
(3,508 Views)
Hello altenbach.
The next is FCS-For.vi.I do not know why the program can result to the computer died?

the program has any problem?

Thanks.
0 Kudos
Message 8 of 14
(3,507 Views)
One thing you should definitely do is save FCS-For.VI under LabVIEW 7.1. It currently is still in LabVIEW version 6.1, while the rest of your program is 7.1. This means that this subVI gets converted every time you run your program.

It has been my experience that a freshly converted, but not yet saved(!), VI uses significantly more resources and runs slower until it is saved under the new version. You should also be more careful with data types, for example in this VI you have an array of U8 and XOR it with an I32 then display it as DBL. A better alternative is in the attached modification (LabVIEW 7.1) and keep it all as U8.

OK, now to a possible problem in the main VI: If the two case structure on the right are both false, the two refnums and error cluster are not wired through. This means that the two files opened during that loop iteration never get closed. You should definitely wire these across in every case (see arrows in picture)!

Message Edited by altenbach on 05-25-2005 10:46 PM

Download All
Message 9 of 14
(3,499 Views)
Hello altenbach.

Thank you very much.

What you said is my program should all saved under Labview7.1? And the subvi is also saved under Labview7.1?

And the problem in the main VI which you point is modified.

Am i understand your means clearly? is there any other problems in the program?

I think you should understand the function of the program ,can you give me some advice?

Thanks for your help.
0 Kudos
Message 10 of 14
(3,489 Views)