LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Program slow with CVI opened...

When I run a program on the computer (after the distribution kit) without CVI opened, the program is slow but when I open CVI, it is faster???
0 Kudos
Message 1 of 4
(3,458 Views)
Hello Johann,

First I would like to clarify the behavior your are seeing. Are you seeing the improved speed of you application when you just run your program with CVI opened, or when you run it within the CVI development environment?

There are two reasons why you might be seeing the increased performance.

First of all, if you are using advanced functions such as TCP/IP, ActiveX, etc, all those dlls are loaded when you open up CVI. So if you run a program created from the distribution kit on top of that, you program will already know how to located those DLLs since CVI has already stored them in memory.

If you were testing the speed of the application by actually running the program in the CVI development environment, you may be seeing increased performan
ce if you have your sleep policy set not to sleep or to sleep some. The default setting (located under Options >> Environment) is for CVI to sleep more, but you may have different settings for your applications.


Thanks.

Wendy L
National Instruments
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 4
(3,455 Views)
Thanks for your answer Wendy,

to clarify the behaviour I have seen, the speed is faster when I just run the program with CVI opened.

In my application, I just make data acquisition from sensors using an electronic with USB controller to communicate to the PC.
No TCP/IP, no ActiveX.

If I run the program alone (made with the distribution kit), it works slowly. Now, if I just open the CVI development environment, it starts to run faster.



Hello Johann,

First I would like to clarify the behavior your are seeing. Are you seeing the improved speed of you application when you just run your program with CVI opened, or when you run it within the CVI development environment?

There are two reasons why you might be seeing the increased performance.

First of all, if you are using advanced functions such as TCP/IP, ActiveX, etc, all those dlls are loaded when you open up CVI. So if you run a program created from the distribution kit on top of that, you program will already know how to located those DLLs since CVI has already stored them in memory.

If you were testing the speed of the application by actually running the program in the CVI development environment, you may be seeing increased performan
ce if you have your sleep policy set not to sleep or to sleep some. The default setting (located under Options >> Environment) is for CVI to sleep more, but you may have different settings for your applications.


Thanks.

Wendy L
National Instruments

Wendy L
National Instruments
0 Kudos
Message 3 of 4
(3,447 Views)
Hello Johann,

So if you try to open a Analog Input shipping example, create an distribution kit and run it, do you see the same slow behavior when CVI is not opened and improved behavior when it is?

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 4
(3,431 Views)