LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows/CVI be freezed after severals minutes

Hello,
I have use to program on LabWindows/CVI, but I have many thinks to learn.
I have a very simply software (manual and maintenance mode) :
- acquisitions (PCI-6225) by EveryNCallBack (100 Hz / 25 points by callback, so call every 250 ms),
- the measures are displaying on Stripchart (TabControl , index 1),
- on Tree list  (TabControl , index 2),
- and are saving into ".Txt" files.
N.B. : the time for treatment is 100 ms max.
This software works "perfectly" on LabWindows/CVI 8.5 (I have re-install the 8.5 on an other PC).
I have update and try it on LabWindows/CVI 9.0 (on 2 different PCs, just to make test)
And I have some problem, after 20' (30' max) the software is totally freeze (panel displaying, tabcontrol, + "no reponse ...") ?
Even, the independant and simply "Clock" (date + time) panel CallBackTimer (call every 1s).
I have follow the memories and process by the task manager, all seems ok.
I have check all the malloc and free.
I have play with the "SetSleepPolicy".
I try to disconnect one by one the functionnalities, but problem seems to be always present.
The only think, is that only acquisition without displaying and saving, do not freeze my software.
It is normal, because, in simulation mode (on PC without boards), I have replace the EveryNCallback by a 2nd timer (random points),
and I have always same the problem.
Do you know some tools that I can use ?
Do you have some pist for me ?
Must I stay on 8.5 ?
Thanks a lot for your help.

Certified LabWindows/CVI DEVELOPER (2004)
LabVIEW since 5.01 | LabWindows/CVI since 4.01
0 Kudos
Message 1 of 9
(3,867 Views)
Just a try: do you happen to use CVI 9 evaluation version? If this is the case this is the expected behaviour, since executable created with en eval version are limited to 10 minutes run, after which they simply stop executing. If this is your situation your only solutions are to stay on version 8.5 or buy a regular license for CVI 9.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 9
(3,865 Views)
Hello,
I have a regular licence, because I have the SSP service (08/2008).
The 9.0 is by the official NI DVD.
Normally, I have only 1 PC, but after have take out 8.5 to update 9.0,
I see this problem (but not immediatly off course, 15 days later).
So I have test on other PC (but just for check).
And I have install 8.5 on an other PC, just to confirm that it was not the new modifications, since the update, the real problem.
Thanks

Certified LabWindows/CVI DEVELOPER (2004)
LabVIEW since 5.01 | LabWindows/CVI since 4.01
0 Kudos
Message 3 of 9
(3,862 Views)
And all my Labwindows (on each PC) are successfull register.

Certified LabWindows/CVI DEVELOPER (2004)
LabVIEW since 5.01 | LabWindows/CVI since 4.01
0 Kudos
Message 4 of 9
(3,861 Views)
Hello,
I have test the functionalities one by one.
It seems to be the stripchart managing (like oscilloscopes) which make the problem.
If I put it in comments, there is not problem (severals hours).
I use this kind of module since CVI 4.
So I someone have an idea, thank.

Certified LabWindows/CVI DEVELOPER (2004)
LabVIEW since 5.01 | LabWindows/CVI since 4.01
0 Kudos
Message 5 of 9
(3,834 Views)

Hello Pims,

 

Would it be possible for you to strip down your program, preferably eliminating any dependencies on hardware, and post here a version of the program that reproduces this hang?

 

Thanks,

Luis

0 Kudos
Message 6 of 9
(3,826 Views)
Hello,
I understand that it will be a good idea, but it will be not so easy to do it.
Many dependances ... So it will take a long time to make it functional.
And it is just a supposition.
In my code, I have a tabcontrol with :
* 1 tab with 1 stripchart with 13 channels (and 13 textbox fot the legend)
* and 1 tab with 3 stripcharts with 4 channels on each (and so 3 * 4 textbox fot the legend)
If I put in comment the following line on only the managing of the 3 stripcharts (same code of the 1) :
status = PlotStripChart (PanelOscilloscopes, TabPanelOscilloscopes[indexI].Control, TabStripchart, nbPoints * NbMaxChannels, 0, 0, VAL_DOUBLE);
   panel & control != -1
   tab = 25 points * nbchannels
  status = 0
The problem disappears.
One more information, it is doing it in release mode but also in debug mode.
And if a put a breakpoint (on timer or everyNCallback), the program never stop on it.
If I make a break execution (ctrl + F12), the program stop, but nowhere (no red line). 
I have use the "ConfigCVILogging.exe" but and do not see some thing (so files)

Certified LabWindows/CVI DEVELOPER (2004)
LabVIEW since 5.01 | LabWindows/CVI since 4.01
Download All
0 Kudos
Message 7 of 9
(3,803 Views)

Knowing that the hang doesn't happen if you don't plot to the stripchart is helpful but it's not enough to guess what the problem is. Hopefully you'll be able to strip out the dependencies and send us the program. Does your program use more than one thread, by the way?

 

The logs that you attached could potentially also be helpful, but it looks as if the ones you attached here correspond to the CVI environment, not to your program. To get a log of your program instead, run the ConfigCVILogging utility, but at the top-left of the window select Runtime Engine instead of Environment.

 

Luis

0 Kudos
Message 8 of 9
(3,767 Views)
Hello,
With the help of NI France, we found the LabWindows/CVI problem, but not the correction, just an easy way.
In the strip chart, to win a small space on "X zone", I have decided to not put label name,
and especially, I have have decided to selected the "Enable label strings",
but I have never fill data on UIR or by software.
On CVI8.5, it is not a problem, in CVI 9.0, it is creating the problem.
If I unselected this option, without make any change in the code, it is working perfectly.
So it is "X zone" takes more space, but it is working.
This information will be send to US by NI France.
So for me, this subject is closed.

Certified LabWindows/CVI DEVELOPER (2004)
LabVIEW since 5.01 | LabWindows/CVI since 4.01
0 Kudos
Message 9 of 9
(3,734 Views)